Commit Graph

6373 Commits

Author SHA1 Message Date
oharboe
4febcd8313 Michael Bruck:
arm11

--- Added burst memory transfer mode

This does not explicitly query command execution but rather uses a small
delay produced by the FT2232 on certain TAP commands.

A potential failure of this process is detected afterwards and the
program terminates with an error.

'arm11 memwrite burst disable'
  can be used to switch this feature off.

'arm11 memwrite error_fatal disable'
  can be used to prevent the program to exit on an memory write error


--- Added support for interrupt breaking via VCR register

Use 'arm11 vcr' command to set.


--- Cleaned up the handling of

halt/resume/step/poll, target->state, target->debug_reason,
target_call_event_callbacks() at least as far as I could guess the
intended behaviour from other targets.

Did some overall positive tests with GDB.


--- Added support for breakpoints

Hardware breakpoints only. All breakpoints will be treated as hardware
breakpoints.

All ARM11's seem to have at least 6 hardware breakpoints.

--- Stepping over BKPT added

Modification to PC without touching the target.

--- Stepping over a B or BL to self will do nothing


git-svn-id: svn://svn.berlios.de/openocd/trunk@385 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-29 07:03:28 +00:00
oharboe
881dddd84f Michael Bruck:
- fix indentation of multi-level commands
- make help command work with multi-level commands

git-svn-id: svn://svn.berlios.de/openocd/trunk@384 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-29 07:01:43 +00:00
oharboe
c98ec4cc36 changed to eCos license.
git-svn-id: svn://svn.berlios.de/openocd/trunk@383 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 18:09:33 +00:00
oharboe
fc925b637d fixed newline gaffe in OUTPUT()
git-svn-id: svn://svn.berlios.de/openocd/trunk@382 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 15:14:14 +00:00
oharboe
2d48f25dcf Pavel Chromy spotted duplicated newlines gaffe from yours sincerely.
git-svn-id: svn://svn.berlios.de/openocd/trunk@381 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 14:28:37 +00:00
oharboe
0db9f18a18 Pavel Chromy spotted a leak
git-svn-id: svn://svn.berlios.de/openocd/trunk@380 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 14:23:32 +00:00
oharboe
6d0aa6dc05 Uwe Hermann: Simplify the manpage by removing lots of redundant information which is
already in the README or texinfo (and which needs to be updated
relatively often -- list of authors, list of supported JTAG devices etc).

git-svn-id: svn://svn.berlios.de/openocd/trunk@379 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 13:04:49 +00:00
oharboe
e916cc840d numerous fixes from Uwe Hermann
git-svn-id: svn://svn.berlios.de/openocd/trunk@378 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 11:52:26 +00:00
oharboe
ddb94b5bdb small line ending cleanup.
git-svn-id: svn://svn.berlios.de/openocd/trunk@377 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 11:08:46 +00:00
oharboe
fc37cdb2dd Pavel Chromy - cleanup error messages
git-svn-id: svn://svn.berlios.de/openocd/trunk@376 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 11:00:35 +00:00
oharboe
5f159928b1 fix gaffe.
git-svn-id: svn://svn.berlios.de/openocd/trunk@375 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 10:49:22 +00:00
oharboe
86ca2270f4 Pavel Chromy cleaned up checks for halted, error messages, etc.
git-svn-id: svn://svn.berlios.de/openocd/trunk@374 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 10:44:41 +00:00
ntfreak
b008ff7ae1 - svn file props set to LF endings
git-svn-id: svn://svn.berlios.de/openocd/trunk@373 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 10:38:04 +00:00
oharboe
076017341d fix from Pavel Chromy
this patch fixes an issue in jtag_init - shall not reset jtag to NULL.
This causes jtag interface (USB device) not to be closed properly if jtag chain validation fails.

Once the underlaying jtag interface is initialized, jtag pointer shall be left untouched,
even in case of an error, so that proper cleanup can be done, see exit_handler in openocd.c


git-svn-id: svn://svn.berlios.de/openocd/trunk@372 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 10:24:46 +00:00
ntfreak
9e5a6679ca - added svn props
- fixed mixed line endings on flash.c, log.c, gdb_server.c

git-svn-id: svn://svn.berlios.de/openocd/trunk@371 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 10:07:54 +00:00
oharboe
76ebc78358 code to be used in upcoming minidriver work.
git-svn-id: svn://svn.berlios.de/openocd/trunk@370 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 09:34:18 +00:00
oharboe
367b968809 added some code that will be used in upcoming minidriver work.
git-svn-id: svn://svn.berlios.de/openocd/trunk@369 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 09:32:09 +00:00
oharboe
8e7d9cb3bc fix copyright.
git-svn-id: svn://svn.berlios.de/openocd/trunk@368 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 09:30:06 +00:00
oharboe
7cdb05b7d6 jtag_add_shift() fn - minidriver work in progress.
git-svn-id: svn://svn.berlios.de/openocd/trunk@367 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 09:21:56 +00:00
oharboe
ebbcbd3f29 lingering change for eCos flash driver
git-svn-id: svn://svn.berlios.de/openocd/trunk@366 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 08:37:01 +00:00
oharboe
d17e1cd933 eCos flash driver.
git-svn-id: svn://svn.berlios.de/openocd/trunk@365 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 08:25:46 +00:00
oharboe
0689e3dd67 - Added TARGET_REQ_DEBUGCHAR target_request debugmsg. This
provides a better impeadance match for debug output char fn's, e.g. eCos.
- Line endings are now added at the caller site of command_print*(). command_print()
  still adds a line ending
- echo of commands in scripts are now available via debug_level instead of
  forced echo
- Added a USER_SAMELINE() for printing without a lineend.


git-svn-id: svn://svn.berlios.de/openocd/trunk@364 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 08:11:18 +00:00
ntfreak
b70e262867 - fix line-endings
git-svn-id: svn://svn.berlios.de/openocd/trunk@363 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 07:44:13 +00:00
drath
966b912b65 - fix line-endings
git-svn-id: svn://svn.berlios.de/openocd/trunk@362 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 07:35:51 +00:00
oharboe
8ff85b62ef Uwe Hermann Add @dircategory and @direntry to the info page -- they're used to add the openocd info page to the global index of info pages in the system (usually /usr/share/info/dir).
git-svn-id: svn://svn.berlios.de/openocd/trunk@361 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 07:26:14 +00:00
oharboe
f76cf27380 Uwe Hermann fixed some warnings.
git-svn-id: svn://svn.berlios.de/openocd/trunk@360 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-28 07:25:06 +00:00
ntfreak
06b1bfed10 - correct line endings from previous commit
git-svn-id: svn://svn.berlios.de/openocd/trunk@359 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-27 18:59:38 +00:00
drath
8eab9e7974 - fix typo in ep93xx jtag driver to allow OpenOCD compilation on ARM (thanks to Uwe Hermann for the patch)
git-svn-id: svn://svn.berlios.de/openocd/trunk@358 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-27 17:25:33 +00:00
drath
796fa81a2b - fix bug in ft2232 pathmove (thanks to Michael Bruck for the patch)
git-svn-id: svn://svn.berlios.de/openocd/trunk@357 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-27 06:59:35 +00:00
oharboe
5a15c6d807 Nicolas Pitre listed some more devices.
git-svn-id: svn://svn.berlios.de/openocd/trunk@356 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-27 06:44:45 +00:00
ntfreak
0686e944f3 - fix issue when target is already halted
git-svn-id: svn://svn.berlios.de/openocd/trunk@355 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-26 19:56:45 +00:00
ntfreak
3a4f43ab56 - code reformat (Thanks Pavel Chromy)
git-svn-id: svn://svn.berlios.de/openocd/trunk@354 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-26 19:51:18 +00:00
oharboe
a4cb112599 fix naming conflict under Windows.
git-svn-id: svn://svn.berlios.de/openocd/trunk@353 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-26 19:24:49 +00:00
oharboe
3e685d0bbe oopss.. another jtag minidriver reset gaffe.
git-svn-id: svn://svn.berlios.de/openocd/trunk@352 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-26 14:19:27 +00:00
oharboe
bdbc833bac jtag_add_reset() minidriver gaffe fixed.
git-svn-id: svn://svn.berlios.de/openocd/trunk@351 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-26 13:21:57 +00:00
oharboe
4c7891eceb Next step in the JTAG minidriver. This should be fairly close to the final thing, but
I'm not calling it "done" quite yet.


git-svn-id: svn://svn.berlios.de/openocd/trunk@350 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-26 11:53:54 +00:00
oharboe
11fa148944 - jtag minidriver work in progress
- svn:eol-style=native. Let's see how that works out :-)


git-svn-id: svn://svn.berlios.de/openocd/trunk@349 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-26 06:25:22 +00:00
ntfreak
5279d519f8 - remove build warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@348 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 20:18:26 +00:00
drath
3d6bcf0792 - convert all files to unix line-ending
git-svn-id: svn://svn.berlios.de/openocd/trunk@347 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 17:48:04 +00:00
oharboe
7f1944a478 Pavel Chromy
- multiple log listeners
- added OUTPUT() to replace printf
- fix formatting

git-svn-id: svn://svn.berlios.de/openocd/trunk@346 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 17:32:53 +00:00
oharboe
375c5f85d2 formatting.
git-svn-id: svn://svn.berlios.de/openocd/trunk@345 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 15:12:00 +00:00
oharboe
a08d86e88d Pavel Chromy style fixes.
git-svn-id: svn://svn.berlios.de/openocd/trunk@344 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 14:58:20 +00:00
oharboe
81184adfb0 Fix from Pavel Chromy.
https://lists.berlios.de/pipermail/openocd-development/2008-February/001018.html

git-svn-id: svn://svn.berlios.de/openocd/trunk@343 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 14:50:31 +00:00
oharboe
3b5690ade1 - Fix target library path problem w/Windows
git-svn-id: svn://svn.berlios.de/openocd/trunk@342 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 13:09:15 +00:00
oharboe
687a9553c9 From Michael Bruck
- bugfix in server.c
- removed unused parameter from jtag_add_ir_scan et al. This
wasn't necessary in hindsight but anyway.
- arm11 source committed but not not in Makefile.am/target.c for now.

git-svn-id: svn://svn.berlios.de/openocd/trunk@341 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 08:22:18 +00:00
oharboe
4edcbe0a54 committed bugfix from Michael Bruck
git-svn-id: svn://svn.berlios.de/openocd/trunk@340 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 08:08:31 +00:00
oharboe
bcb0124b15 dos2unix fix.
git-svn-id: svn://svn.berlios.de/openocd/trunk@339 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 08:01:21 +00:00
oharboe
e482118106 - using ERROR_COMMAND_SYNTAX_ERROR to print syntax in a couple of places
- some more flash cleanup of checking halted state
- moved output handler into options.c
- very slightly tweaked server.c to make it a bit more compatible with eCos
- retired arch_state. Not quite sure how I managed to leave that out last time.

git-svn-id: svn://svn.berlios.de/openocd/trunk@338 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 07:50:03 +00:00
oharboe
815c3b3533 - "flash write_binary" is now "flash write_bank" to clarify the focus of the
command and reduce confusion with "flash write_image".
- retired deprecated "flash erase" & "flash write".
- added flash_driver_protect/write/erase() that are wafer thin frontend
 functions to low level driver functions. They implement checks
 that were inconsistently handled by the drivers, e.g. check for
 target halted was done in a spotty fashion.
- use return ERROR_COMMAND_SYNTAX_ERROR to print out
 syntax of command instead of having lots of inlined replicas of
 the command line syntax(some of which were wrong).
- use logging instead of dubious translation of error values to
 human understandable explanations of why things failed.
 The lower levels log the precise reason and the higher
 levels can ammend context as the error propagates up
 the call stack.
- simplified flash API slightly with logging instead of
 allocating and returning information that the caller then
 has to translate into print statements.



git-svn-id: svn://svn.berlios.de/openocd/trunk@337 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 07:32:52 +00:00
oharboe
d8456e4826 Michael Bruck spotted an omission in svn 322
git-svn-id: svn://svn.berlios.de/openocd/trunk@336 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-02-25 06:44:46 +00:00