openocd.git
11 years agoPavel Chromy fix: the guess-rev.sh scripts to retrieve SVN revision returns the resul...
oharboe [Fri, 29 Feb 2008 13:03:37 +0000 (13:03 +0000)]
Pavel Chromy fix: the guess-rev.sh scripts to retrieve SVN revision returns the result including new line
causing PKGBLDREV macro to not work

git-svn-id: svn://svn.berlios.de/openocd/trunk@398 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoUwe Hermann: Updated version which applies cleanly after the recent whitespace fixes.
oharboe [Fri, 29 Feb 2008 12:39:42 +0000 (12:39 +0000)]
Uwe Hermann: Updated version which applies cleanly after the recent whitespace fixes.

git-svn-id: svn://svn.berlios.de/openocd/trunk@397 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoUwe Hermann:
oharboe [Fri, 29 Feb 2008 12:37:45 +0000 (12:37 +0000)]
Uwe Hermann:
Small cosmetic fixes in the license header to make them all look the
same, fix some typos, update README.

git-svn-id: svn://svn.berlios.de/openocd/trunk@396 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoPavel Chromy: add missing newlines.
oharboe [Fri, 29 Feb 2008 12:31:29 +0000 (12:31 +0000)]
Pavel Chromy: add missing newlines.

git-svn-id: svn://svn.berlios.de/openocd/trunk@395 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoUwe Hermann: mproves the manpage text a bit and adds the
oharboe [Fri, 29 Feb 2008 12:30:21 +0000 (12:30 +0000)]
Uwe Hermann: mproves the manpage text a bit and adds the
missing -s and -c options.

git-svn-id: svn://svn.berlios.de/openocd/trunk@394 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agolingering patch from Pavel Chromy.
oharboe [Fri, 29 Feb 2008 12:20:30 +0000 (12:20 +0000)]
lingering patch from Pavel Chromy.

git-svn-id: svn://svn.berlios.de/openocd/trunk@393 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoformatting fixes from Pavel Chromy
oharboe [Fri, 29 Feb 2008 12:16:02 +0000 (12:16 +0000)]
formatting fixes from Pavel Chromy

git-svn-id: svn://svn.berlios.de/openocd/trunk@392 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoremove warnings.
oharboe [Fri, 29 Feb 2008 11:55:09 +0000 (11:55 +0000)]
remove warnings.

git-svn-id: svn://svn.berlios.de/openocd/trunk@391 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- image.c and fileio.c now uses logging to propagate error strings.
oharboe [Fri, 29 Feb 2008 11:42:37 +0000 (11:42 +0000)]
- image.c and fileio.c now uses logging to propagate error strings.
 More precise, less code.
- removed unused code in fileio.c
- Windows should now find debug_handler.bin

git-svn-id: svn://svn.berlios.de/openocd/trunk@390 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- clean up target output strings a bit
oharboe [Fri, 29 Feb 2008 11:31:49 +0000 (11:31 +0000)]
- clean up target output strings a bit
- open_file_from_path() now uses logging feature
- open_file_from_path() no longer uses paths for anything but "r" mode. Fixes
  bug  waiting to happen.

git-svn-id: svn://svn.berlios.de/openocd/trunk@389 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agodo not write single chars to log file.
oharboe [Fri, 29 Feb 2008 11:23:26 +0000 (11:23 +0000)]
do not write single chars to log file.

git-svn-id: svn://svn.berlios.de/openocd/trunk@388 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoPavel Chromy: clarify error messages
oharboe [Fri, 29 Feb 2008 11:18:41 +0000 (11:18 +0000)]
Pavel Chromy: clarify error messages

git-svn-id: svn://svn.berlios.de/openocd/trunk@387 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoSummary: passing of variable argument list reduced, strings sent to logging are now...
oharboe [Fri, 29 Feb 2008 11:16:38 +0000 (11:16 +0000)]
Summary: passing of variable argument list reduced, strings sent to logging are now formatted just once - more efficient.
As a result, ugly string malloc+strcpy are not needed anymore.

git-svn-id: svn://svn.berlios.de/openocd/trunk@386 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoMichael Bruck:
oharboe [Fri, 29 Feb 2008 07:03:28 +0000 (07:03 +0000)]
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

11 years agoMichael Bruck:
oharboe [Fri, 29 Feb 2008 07:01:43 +0000 (07:01 +0000)]
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

11 years agochanged to eCos license.
oharboe [Thu, 28 Feb 2008 18:09:33 +0000 (18:09 +0000)]
changed to eCos license.

git-svn-id: svn://svn.berlios.de/openocd/trunk@383 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agofixed newline gaffe in OUTPUT()
oharboe [Thu, 28 Feb 2008 15:14:14 +0000 (15:14 +0000)]
fixed newline gaffe in OUTPUT()

git-svn-id: svn://svn.berlios.de/openocd/trunk@382 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoPavel Chromy spotted duplicated newlines gaffe from yours sincerely.
oharboe [Thu, 28 Feb 2008 14:28:37 +0000 (14:28 +0000)]
Pavel Chromy spotted duplicated newlines gaffe from yours sincerely.

git-svn-id: svn://svn.berlios.de/openocd/trunk@381 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoPavel Chromy spotted a leak
oharboe [Thu, 28 Feb 2008 14:23:32 +0000 (14:23 +0000)]
Pavel Chromy spotted a leak

git-svn-id: svn://svn.berlios.de/openocd/trunk@380 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoUwe Hermann: Simplify the manpage by removing lots of redundant information which is
oharboe [Thu, 28 Feb 2008 13:04:49 +0000 (13:04 +0000)]
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

11 years agonumerous fixes from Uwe Hermann
oharboe [Thu, 28 Feb 2008 11:52:26 +0000 (11:52 +0000)]
numerous fixes from  Uwe Hermann

git-svn-id: svn://svn.berlios.de/openocd/trunk@378 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agosmall line ending cleanup.
oharboe [Thu, 28 Feb 2008 11:08:46 +0000 (11:08 +0000)]
small line ending cleanup.

git-svn-id: svn://svn.berlios.de/openocd/trunk@377 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoPavel Chromy - cleanup error messages
oharboe [Thu, 28 Feb 2008 11:00:35 +0000 (11:00 +0000)]
Pavel Chromy - cleanup error messages

git-svn-id: svn://svn.berlios.de/openocd/trunk@376 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agofix gaffe.
oharboe [Thu, 28 Feb 2008 10:49:22 +0000 (10:49 +0000)]
fix gaffe.

git-svn-id: svn://svn.berlios.de/openocd/trunk@375 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoPavel Chromy cleaned up checks for halted, error messages, etc.
oharboe [Thu, 28 Feb 2008 10:44:41 +0000 (10:44 +0000)]
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

11 years ago- svn file props set to LF endings
ntfreak [Thu, 28 Feb 2008 10:38:04 +0000 (10:38 +0000)]
- svn file props set to LF endings

git-svn-id: svn://svn.berlios.de/openocd/trunk@373 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agofix from Pavel Chromy
oharboe [Thu, 28 Feb 2008 10:24:46 +0000 (10:24 +0000)]
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

11 years ago- added svn props
ntfreak [Thu, 28 Feb 2008 10:07:54 +0000 (10:07 +0000)]
- 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

11 years agocode to be used in upcoming minidriver work.
oharboe [Thu, 28 Feb 2008 09:34:18 +0000 (09:34 +0000)]
code to be used in upcoming minidriver work.

git-svn-id: svn://svn.berlios.de/openocd/trunk@370 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoadded some code that will be used in upcoming minidriver work.
oharboe [Thu, 28 Feb 2008 09:32:09 +0000 (09:32 +0000)]
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

11 years agofix copyright.
oharboe [Thu, 28 Feb 2008 09:30:06 +0000 (09:30 +0000)]
fix copyright.

git-svn-id: svn://svn.berlios.de/openocd/trunk@368 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agojtag_add_shift() fn - minidriver work in progress.
oharboe [Thu, 28 Feb 2008 09:21:56 +0000 (09:21 +0000)]
jtag_add_shift() fn - minidriver work in progress.

git-svn-id: svn://svn.berlios.de/openocd/trunk@367 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agolingering change for eCos flash driver
oharboe [Thu, 28 Feb 2008 08:37:01 +0000 (08:37 +0000)]
lingering change for eCos flash driver

git-svn-id: svn://svn.berlios.de/openocd/trunk@366 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoeCos flash driver.
oharboe [Thu, 28 Feb 2008 08:25:46 +0000 (08:25 +0000)]
eCos flash driver.

git-svn-id: svn://svn.berlios.de/openocd/trunk@365 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- Added TARGET_REQ_DEBUGCHAR target_request debugmsg. This
oharboe [Thu, 28 Feb 2008 08:11:18 +0000 (08:11 +0000)]
- 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

11 years ago- fix line-endings
ntfreak [Thu, 28 Feb 2008 07:44:13 +0000 (07:44 +0000)]
- fix line-endings

git-svn-id: svn://svn.berlios.de/openocd/trunk@363 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- fix line-endings
drath [Thu, 28 Feb 2008 07:35:51 +0000 (07:35 +0000)]
- fix line-endings

git-svn-id: svn://svn.berlios.de/openocd/trunk@362 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years agoUwe Hermann Add @dircategory and @direntry to the info page -- they're used to add...
oharboe [Thu, 28 Feb 2008 07:26:14 +0000 (07:26 +0000)]
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

11 years agoUwe Hermann fixed some warnings.
oharboe [Thu, 28 Feb 2008 07:25:06 +0000 (07:25 +0000)]
Uwe Hermann fixed some warnings.

git-svn-id: svn://svn.berlios.de/openocd/trunk@360 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- correct line endings from previous commit
ntfreak [Wed, 27 Feb 2008 18:59:38 +0000 (18:59 +0000)]
- correct line endings from previous commit

git-svn-id: svn://svn.berlios.de/openocd/trunk@359 b42882b7-edfa-0310-969c-e2dbd0fdcd60

11 years ago- fix typo in ep93xx jtag driver to allow OpenOCD compilation on ARM (thanks to Uwe...
drath [Wed, 27 Feb 2008 17:25:33 +0000 (17:25 +0000)]
- 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

11 years ago- fix bug in ft2232 pathmove (thanks to Michael Bruck for the patch)
drath [Wed, 27 Feb 2008 06:59:35 +0000 (06:59 +0000)]
- 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

11 years agoNicolas Pitre listed some more devices.
oharboe [Wed, 27 Feb 2008 06:44:45 +0000 (06:44 +0000)]
Nicolas Pitre listed some more devices.

git-svn-id: svn://svn.berlios.de/openocd/trunk@356 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- fix issue when target is already halted
ntfreak [Tue, 26 Feb 2008 19:56:45 +0000 (19:56 +0000)]
- fix issue when target is already halted

git-svn-id: svn://svn.berlios.de/openocd/trunk@355 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- code reformat (Thanks Pavel Chromy)
ntfreak [Tue, 26 Feb 2008 19:51:18 +0000 (19:51 +0000)]
- code reformat (Thanks Pavel Chromy)

git-svn-id: svn://svn.berlios.de/openocd/trunk@354 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agofix naming conflict under Windows.
oharboe [Tue, 26 Feb 2008 19:24:49 +0000 (19:24 +0000)]
fix naming conflict under Windows.

git-svn-id: svn://svn.berlios.de/openocd/trunk@353 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agooopss.. another jtag minidriver reset gaffe.
oharboe [Tue, 26 Feb 2008 14:19:27 +0000 (14:19 +0000)]
oopss.. another jtag minidriver reset gaffe.

git-svn-id: svn://svn.berlios.de/openocd/trunk@352 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agojtag_add_reset() minidriver gaffe fixed.
oharboe [Tue, 26 Feb 2008 13:21:57 +0000 (13:21 +0000)]
jtag_add_reset() minidriver gaffe fixed.

git-svn-id: svn://svn.berlios.de/openocd/trunk@351 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agoNext step in the JTAG minidriver. This should be fairly close to the final thing...
oharboe [Tue, 26 Feb 2008 11:53:54 +0000 (11:53 +0000)]
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

12 years ago- jtag minidriver work in progress
oharboe [Tue, 26 Feb 2008 06:25:22 +0000 (06:25 +0000)]
- 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

12 years ago- remove build warnings
ntfreak [Mon, 25 Feb 2008 20:18:26 +0000 (20:18 +0000)]
- remove build warnings

git-svn-id: svn://svn.berlios.de/openocd/trunk@348 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- convert all files to unix line-ending
drath [Mon, 25 Feb 2008 17:48:04 +0000 (17:48 +0000)]
- convert all files to unix line-ending

git-svn-id: svn://svn.berlios.de/openocd/trunk@347 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agoPavel Chromy
oharboe [Mon, 25 Feb 2008 17:32:53 +0000 (17:32 +0000)]
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

12 years agoformatting.
oharboe [Mon, 25 Feb 2008 15:12:00 +0000 (15:12 +0000)]
formatting.

git-svn-id: svn://svn.berlios.de/openocd/trunk@345 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agoPavel Chromy style fixes.
oharboe [Mon, 25 Feb 2008 14:58:20 +0000 (14:58 +0000)]
Pavel Chromy style fixes.

git-svn-id: svn://svn.berlios.de/openocd/trunk@344 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agoFix from Pavel Chromy.
oharboe [Mon, 25 Feb 2008 14:50:31 +0000 (14:50 +0000)]
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

12 years ago- Fix target library path problem w/Windows
oharboe [Mon, 25 Feb 2008 13:09:15 +0000 (13:09 +0000)]
- Fix target library path problem w/Windows

git-svn-id: svn://svn.berlios.de/openocd/trunk@342 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agoFrom Michael Bruck
oharboe [Mon, 25 Feb 2008 08:22:18 +0000 (08:22 +0000)]
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

12 years agocommitted bugfix from Michael Bruck
oharboe [Mon, 25 Feb 2008 08:08:31 +0000 (08:08 +0000)]
committed bugfix from Michael Bruck

git-svn-id: svn://svn.berlios.de/openocd/trunk@340 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agodos2unix fix.
oharboe [Mon, 25 Feb 2008 08:01:21 +0000 (08:01 +0000)]
dos2unix fix.

git-svn-id: svn://svn.berlios.de/openocd/trunk@339 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- using ERROR_COMMAND_SYNTAX_ERROR to print syntax in a couple of places
oharboe [Mon, 25 Feb 2008 07:50:03 +0000 (07:50 +0000)]
- 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

12 years ago- "flash write_binary" is now "flash write_bank" to clarify the focus of the
oharboe [Mon, 25 Feb 2008 07:32:52 +0000 (07:32 +0000)]
- "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

12 years agoMichael Bruck spotted an omission in svn 322
oharboe [Mon, 25 Feb 2008 06:44:46 +0000 (06:44 +0000)]
Michael Bruck spotted an omission in svn 322

git-svn-id: svn://svn.berlios.de/openocd/trunk@336 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- added "xscale fast_memory_access" which speeds up memory
oharboe [Sun, 24 Feb 2008 21:54:09 +0000 (21:54 +0000)]
- added "xscale fast_memory_access" which speeds up memory
 access by disabling "unecessary" checks.
- arm926ejs. Added missing type->mmu and type->virt2phys fn's.
 for now these are used by working_area when specifying
 mmu enabled and mmu not enabled address

git-svn-id: svn://svn.berlios.de/openocd/trunk@335 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agomove options handling to separate file to better support embedded implementations...
oharboe [Sun, 24 Feb 2008 21:11:09 +0000 (21:11 +0000)]
move options handling to separate file to better support embedded implementations of OpenOCD

git-svn-id: svn://svn.berlios.de/openocd/trunk@334 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- added -c option that will execute an openocd command
oharboe [Sun, 24 Feb 2008 20:10:48 +0000 (20:10 +0000)]
- added -c option that will execute an openocd command
- added at91eb40a target library example.

git-svn-id: svn://svn.berlios.de/openocd/trunk@333 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- fixed target->type->poll() return value
oharboe [Sun, 24 Feb 2008 18:52:45 +0000 (18:52 +0000)]
- fixed target->type->poll() return value
- added arch_state to show status of currently selected target
- simplified target->type->arch_state() api.
- clean up telnet output a bit
- fixed GDB output for arch_state
- removed a couple of unecessary exit()'s
- cleaned up error propagation a bit in a few places

git-svn-id: svn://svn.berlios.de/openocd/trunk@332 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agodisable cfi_write_words(). Broken for spansion, fallback
oharboe [Sun, 24 Feb 2008 18:48:22 +0000 (18:48 +0000)]
disable cfi_write_words(). Broken for spansion, fallback
is a slower codepath that is reported to work.

git-svn-id: svn://svn.berlios.de/openocd/trunk@331 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agodebug_level 3 now prints seconds since start of openocd
oharboe [Sun, 24 Feb 2008 18:46:09 +0000 (18:46 +0000)]
debug_level 3 now prints seconds since start of openocd

git-svn-id: svn://svn.berlios.de/openocd/trunk@330 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- concretize JTAG state transition rules (previously implied behaviour is now documented)
drath [Sun, 24 Feb 2008 18:24:04 +0000 (18:24 +0000)]
- concretize JTAG state transition rules (previously implied behaviour is now documented)

git-svn-id: svn://svn.berlios.de/openocd/trunk@329 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agosharpend JTAG docs w.r.t. hw fifo implementations and retired jtag_cancel_queue(...
oharboe [Sun, 24 Feb 2008 17:33:00 +0000 (17:33 +0000)]
sharpend JTAG docs w.r.t. hw fifo implementations and retired jtag_cancel_queue() which is inheritely incompatible with a hw fifo concept.

git-svn-id: svn://svn.berlios.de/openocd/trunk@328 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agoadded svn:ignore for files generated by bootstrap + build process.
oharboe [Sun, 24 Feb 2008 17:18:03 +0000 (17:18 +0000)]
added svn:ignore for files generated by bootstrap + build process.

git-svn-id: svn://svn.berlios.de/openocd/trunk@327 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years agocosmetic fixes to debug output + phasing out printf() in favour of logging system...
oharboe [Sun, 24 Feb 2008 17:10:48 +0000 (17:10 +0000)]
cosmetic fixes to debug output + phasing out printf() in favour of logging system. From Pavel Chromy <chromy@asix.cz>

git-svn-id: svn://svn.berlios.de/openocd/trunk@326 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- fixes possible crash when GDB connection is closed while target is running due...
drath [Sun, 24 Feb 2008 12:30:45 +0000 (12:30 +0000)]
- fixes possible crash when GDB connection is closed while target is running due to log callback sending messages to connection which does not
exist anymore (thanks to Pavel Chromy for this patch)

git-svn-id: svn://svn.berlios.de/openocd/trunk@325 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- fix for feroceon CP15 register access (thanks to Niolas Pitre for this patch)
drath [Sat, 23 Feb 2008 16:30:13 +0000 (16:30 +0000)]
- fix for feroceon CP15 register access (thanks to Niolas Pitre for this patch)

git-svn-id: svn://svn.berlios.de/openocd/trunk@324 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- Use NAND extended geometry information (thanks to Ben Dooks for this patch)
drath [Sat, 23 Feb 2008 13:39:06 +0000 (13:39 +0000)]
- Use NAND extended geometry information (thanks to Ben Dooks for this patch)

git-svn-id: svn://svn.berlios.de/openocd/trunk@323 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- added a test document as a starting point
mifi [Sat, 23 Feb 2008 12:02:15 +0000 (12:02 +0000)]
- added a test document as a starting point
- corrected URL information for the repro

git-svn-id: svn://svn.berlios.de/openocd/trunk@322 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- added time command
oharboe [Sat, 23 Feb 2008 08:24:59 +0000 (08:24 +0000)]
- added time command
- changed syntax of time measurements to seconds, e.g. 1.2324s

git-svn-id: svn://svn.berlios.de/openocd/trunk@321 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- added patch to remove count and time information from log_printf
mifi [Fri, 22 Feb 2008 22:55:52 +0000 (22:55 +0000)]
- added patch to remove count and time information from log_printf
in case of debug_level is not set to LOG_DEBUG

git-svn-id: svn://svn.berlios.de/openocd/trunk@320 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- cosmetic changes to print out version without line number/time
mifi [Fri, 22 Feb 2008 16:49:07 +0000 (16:49 +0000)]
- cosmetic changes to print out version without line number/time

git-svn-id: svn://svn.berlios.de/openocd/trunk@319 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- fix read/write size for small unaligned accesses (thanks Michael Bruck)
vpalatin [Fri, 22 Feb 2008 16:43:13 +0000 (16:43 +0000)]
- fix read/write size for small unaligned accesses (thanks Michael Bruck)

git-svn-id: svn://svn.berlios.de/openocd/trunk@318 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- added patch to solve problem with AT91SAM7SE MCU have 3, rather than just 2 GPNVM...
mifi [Fri, 22 Feb 2008 16:13:07 +0000 (16:13 +0000)]
- added patch to solve problem with AT91SAM7SE MCU have 3, rather than just 2 GPNVM bits.
(Thanks to Pavel for the patch)

git-svn-id: svn://svn.berlios.de/openocd/trunk@317 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- added patch to make single-stepping more resilient
mifi [Fri, 22 Feb 2008 15:30:19 +0000 (15:30 +0000)]
- added patch to make single-stepping more resilient
(thanks to Nicolas Pitre for the patch)

git-svn-id: svn://svn.berlios.de/openocd/trunk@316 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- add support for Marvell Feroceon (thanks to Nicolas Pitre for this patch)
vpalatin [Thu, 21 Feb 2008 11:43:04 +0000 (11:43 +0000)]
- add support for Marvell Feroceon (thanks to Nicolas Pitre for this patch)

git-svn-id: svn://svn.berlios.de/openocd/trunk@315 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- fix bug when using full paths to config files. Thanks Ted Roth
ntfreak [Wed, 20 Feb 2008 08:32:40 +0000 (08:32 +0000)]
- fix bug when using full paths to config files. Thanks Ted Roth

git-svn-id: svn://svn.berlios.de/openocd/trunk@314 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- added patch which fixed big/small endian problems on non-x86 host CPUs.
mifi [Tue, 19 Feb 2008 21:44:19 +0000 (21:44 +0000)]
- added patch which fixed big/small endian problems on non-x86 host CPUs.
https://lists.berlios.de/pipermail/openocd-development/2008-February/000846.html
(thanks to Øyvind for the patch)

git-svn-id: svn://svn.berlios.de/openocd/trunk@313 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- add search paths via new arg -s (-search). Thanks Ted Roth
ntfreak [Tue, 19 Feb 2008 20:04:57 +0000 (20:04 +0000)]
- add search paths via new arg -s (-search). Thanks Ted Roth
- updated docs for new command

git-svn-id: svn://svn.berlios.de/openocd/trunk@312 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- add support for the majority of the Samsung ARM SoC family, S3C2410, S3C2412, S3C24...
drath [Tue, 19 Feb 2008 19:52:09 +0000 (19:52 +0000)]
- add support for the majority of the Samsung ARM SoC family, S3C2410, S3C2412, S3C2413, S3C2440 and S3C2443 (thanks to Ben Dooks for this patch)

git-svn-id: svn://svn.berlios.de/openocd/trunk@311 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- Fixed bug in pathmove for XScale
ntfreak [Tue, 19 Feb 2008 19:26:17 +0000 (19:26 +0000)]
- Fixed bug in pathmove for XScale
- added virtual address to working_area.
- Improved error messages in a number of places
- Added ERROR_COMMAND_SYNTAX_ERROR that commands can return to have syntax printed
- Added help for some config commands
- Added verification of sw breakpoints with ERROR() message
- Removed a couple of exit()'s and replaced with error message
- cosmetic fix to armv4_5.c, easier to read
- added polymorphic(with default) virt2phys and mmu enable query function to target.h
- added virt2phys command that uses target->type->virt2phys() fn
Thanks to Øyvind Harboe

git-svn-id: svn://svn.berlios.de/openocd/trunk@310 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- reapply fix with telnet prompt while running/halting gdb
ntfreak [Mon, 18 Feb 2008 18:48:04 +0000 (18:48 +0000)]
- reapply fix with telnet prompt while running/halting gdb

git-svn-id: svn://svn.berlios.de/openocd/trunk@309 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- Fix problems with stuck telnet sessions. Thanks to Øyvind Harboe for this patch.
drath [Mon, 18 Feb 2008 18:03:08 +0000 (18:03 +0000)]
- Fix problems with stuck telnet sessions. Thanks to Øyvind Harboe for this patch.

git-svn-id: svn://svn.berlios.de/openocd/trunk@308 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- ignore data aborts during gdb memory read packets by default, and return 0x0 instead
drath [Mon, 18 Feb 2008 17:59:06 +0000 (17:59 +0000)]
- ignore data aborts during gdb memory read packets by default, and return 0x0 instead
- add configuration option "gdb_report_data_abort <enable|disable> to enable reporting of data aborts during gdb memory read packets
- thanks to Øyvind Harboe for identifying the problem with GDB and data aborts
- fix some warnings in gdb_server.c

git-svn-id: svn://svn.berlios.de/openocd/trunk@307 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- arg list now correctly released on error. Thanks Øyvind Harboe
ntfreak [Mon, 18 Feb 2008 16:54:18 +0000 (16:54 +0000)]
- arg list now correctly released on error. Thanks Øyvind Harboe

git-svn-id: svn://svn.berlios.de/openocd/trunk@306 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- fix broken JTAG error handling
ntfreak [Mon, 18 Feb 2008 15:41:38 +0000 (15:41 +0000)]
- fix broken JTAG error handling
- Allow all commands to be executed during config stage
- Help now works for config commands
- make var args handling follow the rules more closely
Thanks Øyvind Harboe

git-svn-id: svn://svn.berlios.de/openocd/trunk@305 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- removed a raft of unecessary exit() calls. Issuing a reset will solve these ails.
ntfreak [Mon, 18 Feb 2008 15:11:01 +0000 (15:11 +0000)]
- removed a raft of unecessary exit() calls. Issuing a reset will solve these ails.
- now uses jtag_state_pathmove() instead of making assumptions about implementation of jtag_statemove().
- fixed a couple of bugs in timeout handling
- removed megabytes of log output when communication is failing.
- sleep is now 300ms as documented instead of 3000ms
- fixed error path of bulk write
- debug_handler can now be issued during normal operation + has help text.
Thanks Øyvind Harboe

git-svn-id: svn://svn.berlios.de/openocd/trunk@304 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- add new non-cfi SST flash device. Thanks Øyvind Harboe
ntfreak [Mon, 18 Feb 2008 14:53:50 +0000 (14:53 +0000)]
- add new non-cfi SST flash device. Thanks Øyvind Harboe

git-svn-id: svn://svn.berlios.de/openocd/trunk@303 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- Added a "User:" debug level. These are messages that are intended for the user...
ntfreak [Mon, 18 Feb 2008 14:32:43 +0000 (14:32 +0000)]
- Added a "User:" debug level. These are messages that are intended for the user and are part of normal operation.
- Faster DEBUG/INFO() when they are disabled
- target_read/write_buffer() now uses 16 and 32 bit access for single word aligned requests. Other requests are serviced as quickly as possible.
- *much* faster read/write GDB packets, removing timeout problems.
- GDB read/write packets w/single word aligned 32/16 bit access now use 32/16 bit word access.
- working area can now be changed on the fly. Provides a way to move working area about as MMU is enabled/disabled.
- cleaned up error messages for verify_image.
Thanks Øyvind Harboe

git-svn-id: svn://svn.berlios.de/openocd/trunk@302 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- combine similar functions in telnet_server.c
ntfreak [Sun, 17 Feb 2008 11:06:58 +0000 (11:06 +0000)]
- combine similar functions in telnet_server.c

git-svn-id: svn://svn.berlios.de/openocd/trunk@301 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- solve lots of problems with stuck GDB connections, making it impossible to connect...
ntfreak [Sat, 16 Feb 2008 15:21:13 +0000 (15:21 +0000)]
- solve lots of problems with stuck GDB connections, making it impossible to connect to GDB, handle timeout of acknowledgement, etc.
- "monitor halt/resume" now works correctly
- "monitor sleep 10000" no longer makes the GDB protocol lock up. There is an error message and the protocol recovers nicely afterwards.
- it's now possible to connect to a target which needs a reset before halt works.
- handle failed memory access more gracefully. Connection is now closed instead of OpenOCD quitting.
- *much* improved handling of 2 second timeout on memory read packets. Especially important w/mouseover evaluation of  variables in Eclipse.
- fixed memory leak upon failed memory packet reply.
- 'O' packets w/progress info is no longer sent out randomly.
- faster packet reply code.
- Thanks to Øyvind Harboe for this patch

git-svn-id: svn://svn.berlios.de/openocd/trunk@300 b42882b7-edfa-0310-969c-e2dbd0fdcd60

12 years ago- cleanup and remove time() warning
ntfreak [Sat, 16 Feb 2008 15:10:26 +0000 (15:10 +0000)]
- cleanup and remove time() warning

git-svn-id: svn://svn.berlios.de/openocd/trunk@299 b42882b7-edfa-0310-969c-e2dbd0fdcd60