- 04 Feb, 2010 3 commits
-
-
David Brownell authored
Segger publishes some documentation on this protocol; reference it, so future maintainers can know it exists. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Spencer Oliver authored
When registering cmds we report duplicate attempts to register a cmd as a LOG_ERROR. Some situations need this, such as when registering dual flash banks. http://www.mail-archive.com/openocd-development@lists.berlios.de/msg11152.html Signed-off-by:
Spencer Oliver <ntfreak@users.sourceforge.net>
-
Ethan Eade authored
Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 03 Feb, 2010 1 commit
-
-
Spencer Oliver authored
- fix coredump when OpenOCD is started without a jtag interface connected. Signed-off-by:
Spencer Oliver <ntfreak@users.sourceforge.net>
-
- 02 Feb, 2010 5 commits
-
-
Harald Kipp authored
Moved board specific settings from target/at91r40008.cfg to a new file board/ethernut3.cfg. Set correct CPUTAPID. Reset delay increased, see MIC2775 data sheet. Increased work area size from 16k to 128k. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Remove long-obsolete text about "erase_check" affecting "flash info" output. Move parts of that text to "protect_check", where it's still relevant; and update the "flash info" description to mention the issue. (This is still awkward. It might be best to make "protect_check" mirror "erase_check" by dumping what it finds, so "flash info" doesn't dump any potentially-stale cache info.) Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Edgar Grimberg authored
For STR7x flash, the device cannot be queried for the protect status. The solution is to remove the protection on reset init. The driver also initialises the sector protect field to unprotected. [dbrownell@users.sourceforge.net: line length shrinkage] Signed-off-by:
Edgar Grimberg <edgar.grimberg@zylin.com> Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Edgar Grimberg authored
The default state of the STR7 flash after a reset init is unlocked. The information in the flash driver now reflects this. The information about the lock status cannot be read from the flash chip, so the user is informed that flash info might not contain accurate information. [dbrownell@users.sourceforge.net: line length shrinkage] Signed-off-by:
Edgar Grimberg <edgar.grimberg@zylin.com> Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Nicolas Pitre authored
The semihosting interface has a strange convention for read/write where the unused amount of buffer must be returned. We failed to return the total buffer size when the local read() call returned 0. Signed-off-by:
Nicolas Pitre <nico@marvell.com>
-
- 01 Feb, 2010 2 commits
-
-
Edgar Grimberg authored
Test cases ran on v0.4.0-rc1 for a number of targets: AT91FR40162 LPC2148 SAM7 STR710 STR912 The goal of the testing session was to prove basic functionality of OpenOCD for different targets. Signed-off-by:
Edgar Grimberg <edgar.grimberg@zylin.com>
-
Øyvind Harboe authored
srst_asserted and power_restore can now be overriden to do nothing. By default they will "reset init" the targets and halt gdb. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 31 Jan, 2010 6 commits
-
-
David Brownell authored
When the TAR cache was explicitly invalidated, don't bother printing it; the actual hardware status is more informative. Provide some doxygen for the MEM-AP setup routine. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Øyvind Harboe authored
Include <sys/stat.h> according to http://www.opengroup.org/onlinepubs/000095399/functions/stat.html Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Sometimes we saw two strange blank spaces at the beginning of the telnet lines. progress ogress > This patch fixes this problem: progress progress > The code changes are *reasonably* clean, but perhaps it could be made a bit more elegant, but I didn't want to change things after I finished diagnosis/testing & submitting the patch. The problem was that logging can send the text and the newline separately in two different requests and the telnet code would incorrectly remove the prompt from the end of a line. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
David Brownell authored
If the MEM-AP cache is invalid, don't display it; just report that invalidity as an error. (This bug has been observed with "mdw 0 32" after just a "reset halt". Some code is being wrongly bypassed...) If it's valid, display that cache at DEBUG level, not ERROR. Also, don't assume it's an AHB-AP; it could be another flavor of MEM-AP. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Reject invalid AP numbers (256+) as Tcl operation parameters. Shrink one of the overlong lines. Add my copyright to the ADIv5 code (multiple contributions). Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
They were reporting "read" errors, not "write" errors. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 29 Jan, 2010 4 commits
-
-
David Brownell authored
Make messages reference "DAP" if they're actually transport-agnostic, or "JTAG-DP" when they're JTAG-specific. Saying SWJ-DP is often wrong (on most Cortex-A8 chips) and is confusing even if correct (since we don't yet support SWD). Rename a JTAG-specific routine to jtagdp_transaction_endcheck() to highlight that it's JTAG-specific, and that identify DAP clients undesirably depending on JTAG. (They will all need to change for SWD support.) Shrink a few overlong lines of code. Copy a comment from code removed in a previous patch (for the ARMv7-M "dap baseaddr" command). Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Make the ARMv7-M DAP code reuse the command handler for "dap baseaddr". For some reason, this DAP command wasn't converted earlier. This is a code shrink and simplification; it also removes a needless transport dependency on JTAG. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Fix goofy struct indents. Function names *are* their addresses. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Alex Austin authored
Building with clang took a few very small changes. The change to helper/log.h is because clang doesn't like an expression where the result is unused. In helper/system.h, I just defined true and false since clang doesn't have them builtin. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 28 Jan, 2010 4 commits
-
-
David Brownell authored
The "-f" is a shortcut for "-c" ... and providing any "-c" options means the "openocd.cfg" file isn't implicitly used. Both the User's Guide and the manual page were weak on these points, which has led to some confusion. Also update the manual page to include highlights of the search path mechanism, including the facts that it exists and that "-s" adds to it. Stop saying only the current directory is involved; the OpenOCD script library is quite significant. (Missing: complete manpage coverage of the search path, including a FILES section listing all components and saying where the script library is found.) Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
The term "DPM" is probably not well known ("Device Power Management"?), so identify its source in the current ARM architecture specification. It's relevant to ARMv6, ARMv7-A, and ARMv7-R ... but not "M" profiles. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Spencer Oliver authored
Cygwin would fail to reopen a previously written file if the mode is not given. Simplified converting the open flags and made sure the win32 O_BINARY bit is set. Added define for systems that do not support O_BINARY. Signed-off-by:
Spencer Oliver <ntfreak@users.sourceforge.net>
-
Spencer Oliver authored
SYS_FLEN would be called before a write on a descriptor to check its size. Currently lseek would fail with -1 when given the stdout/stderr descriptor. Changing to use fstat seems to be the standard way of handling this. Signed-off-by:
Spencer Oliver <ntfreak@users.sourceforge.net>
-
- 27 Jan, 2010 5 commits
-
-
David Brownell authored
ARMv7-M defines a "lockup" state that's entered in certain double fault sequences which can't be recovered from without external help. OpenOCD has previously ignored this. Issue a diagnostic saying the chip has locked up, and force exit from this state by halting the core. It's not clear this is the best way to handle lockup; but there should now be less confusion. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Add space missing after the invalid ACK value. On init, say which AP is being used, and don't assume it's an AHP-AP. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Make that "TODO" message say what needs to be done. Say what part of examining failed. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
The openfacts.berlios wiki isn't particularly current, and isn't publicly editable. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
isspace() parameter must be an integer, else a 'char' gets used as an array index (sigh). Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 25 Jan, 2010 2 commits
-
-
simon qian authored
More SVF fixes: * Treat all content between parentheses as part of the same parameter; don't (wrongly) treat whitespace as a delimiter. * Use isspace() to catch that whitespace; it's not all single spaces, newlines etc are also valid. * When parsing bitstrings, strip leading whitespace too. So for example, these are equivalent and should (now) be OK: "TDI( 1234 )" "TDI( 1 2 3 4 )" "TDI(00 12 34 )" "TDI( 00 12 34)" [dbrownell@users.sourceforge.net: comment updates; trivial cleanup] Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Edgar Grimberg authored
If the target and openocd are idling, the log should normally be silent at level 3. (Given no verbose logging options.) Signed-off-by:
Edgar Grimberg <edgar.grimberg@zylin.com> Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 23 Jan, 2010 4 commits
-
-
simon qian authored
See http://forum.sparkfun.com/viewtopic.php?p=90983#90983 for discussion; basically, the SVF parser wrongly expects "TDI (123)" but the space is optional and it should accept "TDI(123)" too. In the same way, "TDI(123)TDO(456)" should work too. Rather than update the command parsing, this just makes sure the expected spaces are present. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
The breakpoint/watchpoint message was wrong for Feroceon and Dragonite, which have only one working watchpoint unit. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Summarize most ARM11 and Cortex-A8 updates as "acting much more like other ARMs", and mention code sharing. Clarify a few other points, including support for "reset-assert" on all ARMs except Cortex-M (which doesn't exactly need it). Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
This fixes a bug whereby GDB's breakpoints weren't activated. The root cause is a confused interface to resume(). Fix by almost ignoring the "handle breakpoints" parameter; it only seems related to the case of skipping breakpoint-at-PC. Update a few coments to clarify what's happening. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 22 Jan, 2010 2 commits
-
-
David Brownell authored
Doxygen: don't be needlessly verbose; alphabetically sort members TODO: add random bits; clarify which manuals are referenced ARM disassembler: mention a few opcodes that still aren't handled Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Highlight the needs to properly jumper development boards; to make the OpenOCD configuration match the jumpering; and to have a usable "reset-init" method when debugging early boot code. Specific mention of the "ATX Mode" that seems useful on many i.MX boards, forcing NAND boot. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 21 Jan, 2010 2 commits
-
-
David Brownell authored
Update the comments about DP registers and some of the bitfields. Remove inappropriate (and unused) DP_ZERO declaration. Add some (currently unused) #defines needed for SWD protocol support, based on previous patches from Andreas Fritiofson and Simon Qian. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Øyvind Harboe authored
If GDB halts unexpectedly, print reason: srst assert or power out detected. If polling fails, then things are a bit trickier. We do not want to spam telnet or the log with polling failed messages. Leave that case be w/a comment in a code for now. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-