- 29 Dec, 2010 1 commit
-
-
Øyvind Harboe authored
error numbers are only reported at DEBUG log levels and used internally, they are not part of the user interface. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 01 Dec, 2010 1 commit
-
-
Øyvind Harboe authored
it's a lie that is somewhere in the vicinity of the truth. Certainly 64MHz confuses gprof and produces zero output and no error messages. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 22 Nov, 2010 1 commit
-
-
Øyvind Harboe authored
Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 04 Nov, 2010 1 commit
-
-
ddraskovic authored
So far most of the people have been using existing ARM966E in the place of ARM946E, because they have practically the same scan chains. However, ARM946E has caches, which further complicates JATG handling via scan-chain. this was preventing single-stepping for ARM946E when SW breakpoints are used. This patch thus introduces : 1) Correct cache handling on memory write 2) Possibility to flush whole cache and turn it off during debug, or just to flush affected lines (faster and better) 3) Correct SW breakpoint handling and correct single-stepping 4) Corrects the bug on CP15 read and write, so CP15 values are now correctly R/W
-
- 29 Oct, 2010 1 commit
-
-
Øyvind Harboe authored
Delete obsolete jim that comes with OpenOCD.
-
- 12 Oct, 2010 2 commits
-
-
Antonio Borneo authored
Collect variable definitions. Report syntax error to command dispatcher. Propagate error when unable to open file. Signed-off-by:
Antonio Borneo <borneo.antonio@gmail.com>
-
Antonio Borneo authored
The struct fileio is used after fileio_close(). Move fileio_close() after last usage. Signed-off-by:
Antonio Borneo <borneo.antonio@gmail.com>
-
- 29 Sep, 2010 2 commits
-
-
Øyvind Harboe authored
Part of making the fileio API more robust. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 15 Aug, 2010 1 commit
-
-
Oleksandr Tymoshenko authored
committed so as to ease cooperation and to let it be improved over time. So far it supports: - halt/resume - registers inspection - memory inspection/modification I'm still getting up to speed with OpenOCD internals and AVR32 so code is a little bit messy and I'd appreciate any feedback.
-
- 11 Aug, 2010 1 commit
-
-
Øyvind Harboe authored
ocd_ prefix is used internally in OpenOCD as a kludge more or less to deal with the two kinds of commands that OpenOCD has. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 09 Aug, 2010 1 commit
-
-
Øyvind Harboe authored
back-off algorithm for polling. Double polling interval up to 5000ms when it fails. when polling succeeds, reset backoff. This avoids flooding logs(as much) when working with conditions where the target polling will fail. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 02 Aug, 2010 1 commit
-
-
Øyvind Harboe authored
It is useful to know that the printed errors are *all* the errors there were. Added missing error handling(found by inspection). Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 22 Jun, 2010 3 commits
-
-
Øyvind Harboe authored
just like the mdw command Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
$_TARGETNAME mww phys 0x10 0xdeadbeef => write 0xdeadbeef to physical address 0x10 Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Edgar Grimberg authored
wait is declared in /usr/include/sys/wait.h Signed-off-by:
Edgar Grimberg <edgar.grimberg@zylin.com>
-
- 15 Jun, 2010 1 commit
-
-
Øyvind Harboe authored
Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 14 Jun, 2010 1 commit
-
-
Øyvind Harboe authored
failure to write to memory was not propagated. This is an interesting case of broken error handling: with exceptions we wouldn't have had this at all, and I also wonder if there is a GCC option to warn about these kinds of potential bugs. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 08 Jun, 2010 1 commit
-
-
Øyvind Harboe authored
Showing up to 128 differences. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 16 May, 2010 1 commit
-
-
Jon Povey authored
Change download rate messages about kibibytes from "kb/s" to "KiB/s" units. See: http://en.wikipedia.org/wiki/Data_rate_units Signed-off-by:
Jon Povey <jon.povey@racelogic.co.uk>
-
- 05 May, 2010 2 commits
-
-
Øyvind Harboe authored
There are a million reasons why cached protection state might be stale: power cycling of target, reset, code executing on the target, etc. The "flash protect_check" command is now gone. This is *always* executed when running a "flash info". As a bonus for more a more robust approach, lots of code could be deleted. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Various commands, e.g. "arm mcr xxxx" would fail if invoked upon startup since it there was no command context defined for the jim interpreter in that case. A Jim interpreter is now associated with a command context(telnet, gdb server's) or the default global command context. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 04 May, 2010 1 commit
-
-
Øyvind Harboe authored
target memory allocation can be implemented not to show bogus error messages. E.g. when trying a big allocation first and then a smaller one if that fails. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 09 Apr, 2010 2 commits
-
-
Antonio Borneo authored
Remove unused functions: - target_all_handle_event Signed-off-by:
Antonio Borneo <borneo.antonio@gmail.com>
-
Antonio Borneo authored
Add "static" qualifier to private functions. Remove unused "extern" in src/ecosboard.c Signed-off-by:
Antonio Borneo <borneo.antonio@gmail.com>
-
- 04 Apr, 2010 3 commits
-
-
David Brownell authored
I'm not sure what caused this significant character to get deleted. it may be related to intermittent Editor or terminal flakes I've been seeing lately (sigh). This fix is trivial. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Fixing one bug can easily uncover another .... in this case, making sure that we properly invalidate some cached NOR state when resuming arbitrary target code turned up an issue when the code wasn't quite arbitrary (and we couldn't know that, but some parts of OpenOCD assumed the cache would not be invalidated. Specifically: some flash drivers (like CFI) update that state in loops with downloaded algorithms, thus invalidating the state as it's probed. + Add a new target state flag, to record whether the target is running downloaded algorithm code. + Use that flag to add a special case: "trust" downloaded algorithms not to corrupt that cached state, bypassing cache invalidation. Also update some of the documentation to stipulate that this flavor of trustworthiness is now *required* ... not just a fortuitous acident. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
For some reason there are *two* schemes for interposing logic into the run_algorithm() code path... One is a standard procedural wapper around the target method invocation. the other (superfluous) one hacked the method table by splicing a second procedural wrapper into the method table. Remove it: * Rename its slightly-more-featureful wrapper so it becomes the standard procedural wrapper, leaving its added logic (where it should have been in the first place. Also add a paranoia check, to report targets that don't support algorithms without traversing a NULL pointer, and tweak its code structure a bit so it's easier to modify. * Get rid of the superfluous/conusing method table hacks. This is a net simplification, making it simpler to analyse what's going on, and then interpose logic . ... by ensuring there's only one natural place for it to live. ------------ Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 25 Mar, 2010 1 commit
-
-
Øyvind Harboe authored
I don't know when "poll off" broke, but "poll off" didn't stop background polling of target. The polling status flag simply wasn't checked in the handle_target timer callback. All target polling(including power/reset state) is now stopped upon "poll off". Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 17 Mar, 2010 3 commits
-
-
Øyvind Harboe authored
invoke keep_alive() to make sure that the default 2000ms timeout does not trigger. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
- incorrect parsing of arguments - mdX didn't display arguments correctly I don't think anyone ever used that code path :-) Did you know that "target mdw" and mdw are very different? for {set i 0} {$i < 256} {set i [expr $i+1]} {mwb [expr 0x2000000+$i] $i} mdw 0x2000000 0x10 0x02000000: 03020100 07060504 0b0a0908 0f0e0d0c 13121110 17161514 1b1a1918 1f1e1d1c 0x02000020: 23222120 27262524 2b2a2928 2f2e2d2c 33323130 37363534 3b3a3938 3f3e3d3c > zy1000.cpu mdb 0x2000000 0x20 0x02000000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................ 0x02000010 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f ................ > zy1000.cpu mdh 0x2000000 0x20 0x02000000 0100 0302 0504 0706 0908 0b0a 0d0c 0f0e ................ 0x02000010 1110 1312 1514 1716 1918 1b1a 1d1c 1f1e ................ 0x02000020 2120 2322 2524 2726 2928 2b2a 2d2c 2f2e !"#$%&'()*+,-./ 0x02000030 3130 3332 3534 3736 3938 3b3a 3d3c 3f3e 0123456789:;<=>? > zy1000.cpu mdw 0x2000000 0x20 0x02000000 03020100 07060504 0b0a0908 0f0e0d0c ................ 0x02000010 13121110 17161514 1b1a1918 1f1e1d1c ................ 0x02000020 23222120 27262524 2b2a2928 2f2e2d2c !"#$%&'()*+,-./ 0x02000030 33323130 37363534 3b3a3938 3f3e3d3c 0123456789:;<=>? 0x02000040 43424140 47464544 4b4a4948 4f4e4d4c @ABCDEFGHIJKLMNO 0x02000050 53525150 57565554 5b5a5958 5f5e5d5c PQRSTUVWXYZ[\]^_ 0x02000060 63626160 67666564 6b6a6968 6f6e6d6c `abcdefghijklmno 0x02000070 73727170 77767574 7b7a7978 7f7e7d7c pqrstuvwxyz{|}~. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 04 Mar, 2010 1 commit
-
-
David Brownell authored
The NOR infrastructure caches some per-sector state, but it's not used much ... because the cache is not trustworthy. This patch addresses one part of that problem, by ensuring that state cached by NOR drivers gets invalidated once we resume the target -- since targets may then modify sectors. Now if we see sector protection or erase status marked as anything other than "unknown", we should be able to rely on that as being accurate. (That is ... if we assume the drivers initialize and update this state correctly.) Another part of that problem is that the cached state isn't much used (being unreliable, it would have been unsafe). Those issues can be addressed in later patches. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 02 Mar, 2010 1 commit
-
-
David Brownell authored
Add doxygen for target_resume() ... referencing the still-unresolved confusion about what the "debug_execution" parameter means (not all CPU support code acts the same). The 'handle_breakpoints" param seems to have resolved the main issue with its semantics, but it wasn't part of the function spec before. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 01 Feb, 2010 1 commit
-
-
Ø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>
-
- 21 Jan, 2010 2 commits
-
-
Ø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>
-
Edgar Grimberg authored
Fixed format problem for mdh. It needs to display 4 chars. Signed-off-by:
Edgar Grimberg <edgar.grimberg@zylin.com>
-
- 13 Jan, 2010 1 commit
-
-
Øyvind Harboe authored
Allow targets to run checks post reset. Used to check that e.g. DCC downloads have been enabled. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
- 09 Jan, 2010 1 commit
-
-
David Brownell authored
Usage messages should use the same EBNF as the User's Guide; no angle brackets. Be more complete too ... some params were missing. Don't use "&function"; its name is its address. Unrelated: fix typo in one "target.c" usage message. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 07 Jan, 2010 1 commit
-
-
David Brownell authored
Provide helptext which was sometimes missing; update some of it to be more accurate. Usage syntax messages have the same EBNF as the User's Guide. Don't use "&function"; functions are like arrays, their address is their name. Shrink some overlong lines; remove some empties. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-