]> git.sur5r.net Git - openocd/log
openocd
16 years ago- added "init" command. "init" and "reset" at end of startup script is equivalent
oharboe [Wed, 9 Apr 2008 05:50:34 +0000 (05:50 +0000)]
- added "init" command. "init" and "reset" at end of startup script is equivalent
  to daemon_startup(still supported).
- print warning if srst and trst change state at the same time when srst_and_trst
is seperate
- reset now performs a trst, examines and validates the jtag chain before targets
assert reset
- if startup fails to examine and validate the jtag chain, try a reset before
trying again

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

16 years agouse jtag.c's cur/end_state global variables.
oharboe [Tue, 8 Apr 2008 19:23:50 +0000 (19:23 +0000)]
use jtag.c's cur/end_state global variables.

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

16 years agoEdwin Olson found bug & tested fix for flash write_image for stellaris.
oharboe [Tue, 8 Apr 2008 18:55:39 +0000 (18:55 +0000)]
Edwin Olson found bug & tested fix for flash write_image for stellaris.

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

16 years agolm3s6965.cfg contributed by Edwin Olson
oharboe [Tue, 8 Apr 2008 16:37:01 +0000 (16:37 +0000)]
lm3s6965.cfg contributed by Edwin Olson

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

16 years agoadded a couple of LOG_ERROR() messages to improve logfile.
oharboe [Tue, 8 Apr 2008 16:27:50 +0000 (16:27 +0000)]
added a couple of LOG_ERROR() messages to improve logfile.

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

16 years agoPavel pointed out that jtag_add_tlr() is better than jtag_add_tms().
oharboe [Tue, 8 Apr 2008 13:08:36 +0000 (13:08 +0000)]
Pavel pointed out that jtag_add_tlr() is better than jtag_add_tms().

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

16 years agoThe endstate now reports the endstate of the queue instead of
oharboe [Tue, 8 Apr 2008 09:03:49 +0000 (09:03 +0000)]
The endstate now reports the endstate of the queue instead of
reading endstate variable internal to the driver.

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

16 years agoSpen fixed various issues w.r.t. setting up the sockets for optimal performance.
oharboe [Mon, 7 Apr 2008 17:29:21 +0000 (17:29 +0000)]
Spen fixed various issues w.r.t. setting up the sockets for optimal performance.

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

16 years ago- only if "reset halt" or "reset init" are issued will the reset vector be set up
oharboe [Mon, 7 Apr 2008 10:48:44 +0000 (10:48 +0000)]
- only if "reset halt" or "reset init" are issued will the reset vector be set up
- If communication fails during assert between assert/deassert and during
assert, warnings are printed. The warning suggests using srst_only if the
clock locks up as that would allow the reset vector to be set up before
asserting reset.

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

16 years agoat91eb40a.elf moved to src/target/ecos
oharboe [Mon, 7 Apr 2008 05:42:28 +0000 (05:42 +0000)]
at91eb40a.elf moved to src/target/ecos

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

16 years agoavoid patch trouble by isolating troublesome line...
oharboe [Sun, 6 Apr 2008 19:59:32 +0000 (19:59 +0000)]
avoid patch trouble by isolating troublesome line...

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

16 years ago- added note to docs about gdb 6.8 and memory map support
ntfreak [Sat, 5 Apr 2008 10:07:12 +0000 (10:07 +0000)]
- added note to docs about gdb 6.8 and memory map support

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

16 years ago- the reset mode parameter is now DEPRECATED. It is implemented
oharboe [Fri, 4 Apr 2008 14:09:03 +0000 (14:09 +0000)]
- the reset mode parameter is now DEPRECATED. It is implemented
as an optional parameter with default reset_init. This is to streamline
things w.r.t. the target library.

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

16 years ago- reverted some of the changes that possibly broke arm926ejs. Waiting
oharboe [Fri, 4 Apr 2008 13:47:38 +0000 (13:47 +0000)]
- reverted some of the changes that possibly broke arm926ejs. Waiting
for a bit more info before I can tell with confidence whether or not
this would have any effect.
- worked on error propagation and output for flash

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

16 years agoadded query of reset speed
oharboe [Fri, 4 Apr 2008 07:43:04 +0000 (07:43 +0000)]
added query of reset speed

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

16 years ago- added test results
mifi [Thu, 3 Apr 2008 19:42:30 +0000 (19:42 +0000)]
- added test results

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

16 years ago- Work on fixing erase check. Many implementations are plain broken.
oharboe [Thu, 3 Apr 2008 14:00:17 +0000 (14:00 +0000)]
- Work on fixing erase check. Many implementations are plain broken.
Wrote a default flash erase check fn which uses CFI's target algorithm
w/fallback to memory reads.
- "flash info" no longer prints erase status as it is stale.
- "flash erase_check" now prints erase status. erase check can take a
*long* time. Work in progress
- arm7/9 with seperate srst & trst now supports reset init/halt
after a power outage. arm7/9 no longer makes any assumptions
about state of target when reset is asserted.
- fixes for srst & trst capable arm7/9 with reset init/halt
- prepare_reset_halt retired. This code needs to be inside
assert_reset anyway
- haven't been able to get stm32 write algorithm to work. Fallback
flash write does work. Haven't found a version of openocd trunk
where this works.
- added target_free_all_working_areas_restore() which can
let be of restoring backups. This is needed when asserting
reset as the target must be assumed to be an unknown state.
Added some comments to working areas API
- str9 reset script fixes
- some guidelines
- fixed dangling callbacks upon reset timeout

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

16 years agoEdgar Grimberg sharpened the str912 target script.
oharboe [Wed, 2 Apr 2008 14:47:21 +0000 (14:47 +0000)]
Edgar Grimberg sharpened the str912 target script.

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

16 years agofix flash info - now reports erased state properly
oharboe [Wed, 2 Apr 2008 14:40:35 +0000 (14:40 +0000)]
fix flash info - now reports erased state properly

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

16 years agoAdded timeout(instead of infinite loop) to soft_reset_halt
oharboe [Wed, 2 Apr 2008 06:37:08 +0000 (06:37 +0000)]
Added timeout(instead of infinite loop) to soft_reset_halt

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

16 years agooptional count argument to mwX
oharboe [Wed, 2 Apr 2008 06:21:24 +0000 (06:21 +0000)]
optional count argument to mwX

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

16 years ago- fixes for jtag_khz committed.
oharboe [Tue, 1 Apr 2008 17:48:09 +0000 (17:48 +0000)]
- fixes for jtag_khz committed.
- wip, flash fillw/h/b. For testing purposes.

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

16 years agoDo not assert trst in srst_only case even if srst_pulls_trst.
oharboe [Mon, 31 Mar 2008 19:39:05 +0000 (19:39 +0000)]
Do not assert trst in srst_only case even if srst_pulls_trst.

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

16 years agotarget_call_timer_callbacks_now() now invokes periodic callbacks immediately
oharboe [Mon, 31 Mar 2008 19:34:01 +0000 (19:34 +0000)]
target_call_timer_callbacks_now() now invokes periodic callbacks immediately

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

16 years agoRemoved exit()'s. A reset is usually enough to work around these, reducing cycle...
oharboe [Mon, 31 Mar 2008 19:32:38 +0000 (19:32 +0000)]
Removed exit()'s. A reset is usually enough to work around these, reducing cycle times
to get config scripts right.

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

16 years agomake jtag_add_statemove() internal to the driver.
oharboe [Mon, 31 Mar 2008 13:18:03 +0000 (13:18 +0000)]
make jtag_add_statemove() internal to the driver.

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

16 years agoEdgar Grimberg: added needed delays
oharboe [Fri, 28 Mar 2008 11:28:54 +0000 (11:28 +0000)]
Edgar Grimberg: added needed delays

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

16 years agoTAP_SD/SI are now forbidden end states.
oharboe [Wed, 26 Mar 2008 13:29:48 +0000 (13:29 +0000)]
TAP_SD/SI are now forbidden end states.
jtag_add_reset() now returns void streamlining the API

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

16 years agohooks for multithreading. Disable nagle
oharboe [Wed, 26 Mar 2008 13:18:23 +0000 (13:18 +0000)]
hooks for multithreading. Disable nagle

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

16 years ago- rename log functions to stop conflicts under win32 (wingdi)
ntfreak [Tue, 25 Mar 2008 15:45:17 +0000 (15:45 +0000)]
- rename log functions to stop conflicts under win32 (wingdi)

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

16 years ago- gdb server was incorrectly sending null terminator on qXfer:features:read: packet
ntfreak [Sat, 22 Mar 2008 14:19:46 +0000 (14:19 +0000)]
- gdb server was incorrectly sending null terminator on qXfer:features:read: packet
- armv7m now sends correct gdb register packet

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

16 years ago- updated docs with new commands/features
ntfreak [Sat, 22 Mar 2008 14:09:27 +0000 (14:09 +0000)]
- updated docs with new commands/features
- added deprecated/removed commands chapter

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

16 years ago- changed jtag_add_reset errors to warnings
ntfreak [Sat, 22 Mar 2008 10:30:00 +0000 (10:30 +0000)]
- changed jtag_add_reset errors to warnings
- removed extra jtag reset warnings from arm7_9 and cortex_m3

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

16 years ago- armv7m control register now set as dirty when switching context
ntfreak [Fri, 21 Mar 2008 12:53:29 +0000 (12:53 +0000)]
- armv7m control register now set as dirty when switching context
- armv7m added core_mode to cortex_m3_debug_entry DEBUG msg
- cortex_m3 changed WARNINGS to DEBUG msg in cortex_m3_resume

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

16 years ago- added new test results
mifi [Fri, 21 Mar 2008 11:27:42 +0000 (11:27 +0000)]
- added new test results

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

16 years ago- fix warnings during configure cause by ecosboard. default to no, if host cpu isn...
drath [Mon, 17 Mar 2008 21:39:18 +0000 (21:39 +0000)]
- fix warnings during configure cause by ecosboard. default to no, if host cpu isn't arm.
- fix generic bitbang code to allow scans to end in Shift-[ID]R

- several CFI fixes (thanks to Michael Schwingen):
 - buffer overflow when converting target code in cfi_intel_write_block -
   cfi_fix_code_endian needs the number of words, not bytes, as size
   argument.

 - Spansion flash write was completely broken on big-endian targets - I
   borrowed mechanisms from the intel driver, and moved some common code
   into the cfi_command_val helper function. There is still more common code
   that might be cleaned up.

 - the buffer size check in cfi_write was broken for spansion flashes, where
   cfi_write_words is not implemented. cfi_write_words is no only called if
   the flash does have a buffer size >1.

 - "flash info" printed CFI status information for non-CFI flashes, which is
   confusing. It now only prints those when a real CFI flash is detected.

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

16 years agoadded profile command. It was added to simplify evaluation by testers.
oharboe [Fri, 14 Mar 2008 11:20:46 +0000 (11:20 +0000)]
added profile command. It was added to simplify evaluation by testers.

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

16 years agoreset and post reset speed & jtag_khz command documented.
oharboe [Thu, 13 Mar 2008 20:09:33 +0000 (20:09 +0000)]
reset and post reset speed & jtag_khz command documented.

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

16 years agoMichael Bruck: fixed warnings
oharboe [Thu, 13 Mar 2008 15:46:40 +0000 (15:46 +0000)]
Michael Bruck: fixed warnings

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

16 years agoclarified jtag_khz command.
oharboe [Thu, 13 Mar 2008 13:58:07 +0000 (13:58 +0000)]
clarified jtag_khz command.

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

16 years agoadded jtag_khz for use with target library
oharboe [Thu, 13 Mar 2008 11:07:21 +0000 (11:07 +0000)]
added jtag_khz for use with target library

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

16 years ago- adds two speeds to jtag_speed. reset and post reset speed. Default
oharboe [Thu, 13 Mar 2008 10:14:41 +0000 (10:14 +0000)]
- adds two speeds to jtag_speed. reset and post reset speed. Default
is post reset = reset speed.
- removed infinite loop's and exit()'s upon poor arm7/9 communication
- cleaned up error messages a bit. Push ERROR() up into fn's that
  fail and can say something meaningful about what failed.

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

16 years agoprint ms in debug_level 3 logs. Seconds is not enough.
oharboe [Thu, 13 Mar 2008 08:17:01 +0000 (08:17 +0000)]
print ms in debug_level 3 logs. Seconds is not enough.

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

16 years agoXScale excessive waiting fix.
oharboe [Thu, 13 Mar 2008 08:16:34 +0000 (08:16 +0000)]
XScale excessive waiting fix.

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

16 years agomarked infinite loop in code w/TODO and fixed warning.
oharboe [Thu, 13 Mar 2008 08:05:10 +0000 (08:05 +0000)]
marked infinite loop in code w/TODO and fixed warning.

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

16 years agoDominic undid some of my damage. CLK should now be set as intended in all cases.
oharboe [Wed, 12 Mar 2008 18:05:07 +0000 (18:05 +0000)]
Dominic undid some of my damage. CLK should now be set as intended in all cases.

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

16 years agoxscale now passes w/bitbang in 505
oharboe [Wed, 12 Mar 2008 16:03:30 +0000 (16:03 +0000)]
xscale now passes w/bitbang in 505

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

16 years agoThe bitbang driver leaves the TCK 0 when in idle
oharboe [Wed, 12 Mar 2008 16:01:30 +0000 (16:01 +0000)]
The bitbang driver leaves the TCK 0 when in idle

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

16 years agoThis moves common code into functions so as to make it clear
oharboe [Wed, 12 Mar 2008 14:45:26 +0000 (14:45 +0000)]
This moves common code into functions so as to make it clear
that all the jtag_add_xxx() are indeed intended to do the same thing.

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

16 years agofixed regression in XScale introduce in 297
oharboe [Wed, 12 Mar 2008 14:38:43 +0000 (14:38 +0000)]
fixed regression in XScale introduce in 297

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

16 years agomore info about latest working version
oharboe [Wed, 12 Mar 2008 08:39:55 +0000 (08:39 +0000)]
more info about latest working version

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

16 years agoCorrections from Dominic
oharboe [Wed, 12 Mar 2008 08:04:24 +0000 (08:04 +0000)]
Corrections from Dominic

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

16 years agotinkered a bit with testing matrix.
oharboe [Wed, 12 Mar 2008 07:34:10 +0000 (07:34 +0000)]
tinkered a bit with testing matrix.

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

16 years agoreduce compare noise. If someone should be crazy enough to try to run OpenOCD under...
oharboe [Tue, 11 Mar 2008 21:32:03 +0000 (21:32 +0000)]
reduce compare noise. If someone should be crazy enough to try to run OpenOCD under eCos, then they'v got some hooks to point them in the general direction.

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

16 years agoWith the recent changes the TRST needs to happen for every reset.
oharboe [Tue, 11 Mar 2008 21:18:44 +0000 (21:18 +0000)]
With the recent changes the TRST needs to happen for every reset.

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

16 years agotidy up output a bit. No longer show "accepted connection" inside Telnet session.
oharboe [Tue, 11 Mar 2008 21:17:46 +0000 (21:17 +0000)]
tidy up output a bit. No longer show "accepted connection" inside Telnet session.

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

16 years ago- retired unused jtag events. The code was incorrect
oharboe [Tue, 11 Mar 2008 21:16:57 +0000 (21:16 +0000)]
- retired unused jtag events. The code was incorrect
- hopefully clarified the difference between TRST and TMS reset.
- added DEBUG() statements w.r.t. state changes
- TRST released and moving out of TAP_TLR are completely
different events. Only TRST released has a DEBUG() statement

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

16 years ago- 16 and 32 bit unaligned accesses supported
ntfreak [Tue, 11 Mar 2008 18:39:43 +0000 (18:39 +0000)]
- 16 and 32 bit unaligned accesses supported
- uses packed transfers for 8/16bit read/writes greater than 4bytes
- 8/16bit transfers now use address auto increment

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

16 years agoretire unused code.
oharboe [Tue, 11 Mar 2008 11:19:15 +0000 (11:19 +0000)]
retire unused code.

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

16 years agoJTAG_END_STATE is now retired. It is no longer queued.
oharboe [Tue, 11 Mar 2008 11:03:40 +0000 (11:03 +0000)]
JTAG_END_STATE is now retired. It is no longer queued.

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

16 years ago- fixed jtag_add_reset(). It no longer causes jtag_execute_queue() to
oharboe [Tue, 11 Mar 2008 09:06:00 +0000 (09:06 +0000)]
- fixed jtag_add_reset(). It no longer causes jtag_execute_queue() to
  fail for two of it's return codes. A little bit weird, but compatible with
  existing codebase.
- tightend up error handling. Since the jtag_xxx() is a queue that is either
  executed as things are added(hw queue) or a software queue, then
  errors can only be caught during jtag_execute_queue(). No error
  code is therefore returned from the queuing fn's.

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

16 years agoPavel Chromy: telnet line buffer size checking, history does not store repeating...
oharboe [Tue, 11 Mar 2008 08:15:54 +0000 (08:15 +0000)]
Pavel Chromy: telnet line buffer size checking, history does not store repeating lines, improved history printing, log callback tweak

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

16 years agobacked out changes from 483.
oharboe [Mon, 10 Mar 2008 20:19:52 +0000 (20:19 +0000)]
backed out changes from 483.

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

16 years agomore target scripts wip.
oharboe [Mon, 10 Mar 2008 20:12:46 +0000 (20:12 +0000)]
more target scripts wip.

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

16 years agomore target scripts wip.
oharboe [Mon, 10 Mar 2008 20:12:35 +0000 (20:12 +0000)]
more target scripts wip.

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

16 years agoPavel Chromy: hopefully perfection for async output and prompt/partially typed comman...
oharboe [Mon, 10 Mar 2008 20:05:48 +0000 (20:05 +0000)]
Pavel Chromy: hopefully perfection for async output and prompt/partially typed command line handling.

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

16 years agoPavel Chromy: the attached patch refines PRESTO support and makes it work with libftdi.
oharboe [Mon, 10 Mar 2008 17:24:44 +0000 (17:24 +0000)]
Pavel Chromy: the attached patch refines PRESTO support and makes it work with libftdi.

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

16 years agoprettier async output
oharboe [Mon, 10 Mar 2008 15:07:21 +0000 (15:07 +0000)]
prettier async output

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

16 years ago- fixed a problem with big endian XScale and GDB register packets.
oharboe [Mon, 10 Mar 2008 14:14:15 +0000 (14:14 +0000)]
- fixed a problem with big endian XScale and GDB register packets.
- hmm..... did I screw up? Was XScale and not gdb_server busted here?
  My thinking was that OpenOCD has a canonical internal representation
  of registers that match GDB's expectations

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

16 years ago- the jtag chain is examined and validated after GDB & telnet servers
oharboe [Mon, 10 Mar 2008 14:07:28 +0000 (14:07 +0000)]
- the jtag chain is examined and validated after GDB & telnet servers
 are up and running. The examination and validation is actually
 "optional" from the point of view of GDB + telnet servers.
 Multiple targets should work fine with this.
- jtag_speed is dropped(divisor is increased), if jtag examination and
 validation fails.
- the chain is validated 10x to catch the worst jtag_speed offences
- added LOG_SILENT that can be used to shut up log. Feeble
 ersatz for try+catch.
- GDB register packets are now always replied in order to make sure
 that GDB connect works. If the target is not halted, then these
 packets contain dummy values.

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

16 years ago- Fixed various error handling when looking for memory leaks
oharboe [Mon, 10 Mar 2008 12:11:07 +0000 (12:11 +0000)]
- Fixed various error handling when looking for memory leaks
- Fixed memory leak in gdb_server.c
- pushed "Error:" statements up into fn's that know something about what went wrong
- load_image now fails if target_write_memory() fails
- only issue an asynchronous halt() upon connect of GDB. Synchronous halt/reset
  doesn't really work as what's required to initialize the target might involve a
  special monitor sequence for the target in question
- syntax error handling improved(fewer exit()'s)

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

16 years ago- LOG_SILENT can be used to silence the log(needed in upcoming patches)
oharboe [Mon, 10 Mar 2008 12:04:30 +0000 (12:04 +0000)]
- LOG_SILENT can be used to silence the log(needed in upcoming patches)
- ERROR_FAIL - added to emphasize that information about what went wrong is
 contained in Error: log statements and not in a 32 bit return value.

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

16 years agoadded stm32.cfg to install list
oharboe [Mon, 10 Mar 2008 10:20:26 +0000 (10:20 +0000)]
added stm32.cfg to install list

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

16 years agoMichael Bruck: fix warning
oharboe [Sun, 9 Mar 2008 19:22:51 +0000 (19:22 +0000)]
Michael Bruck: fix warning

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

16 years ago- add stm32 target script
ntfreak [Sun, 9 Mar 2008 09:28:12 +0000 (09:28 +0000)]
- add stm32 target script

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

16 years ago- added more TARGET_HALTED checks for the read/write_memory handlers
ntfreak [Sat, 8 Mar 2008 17:28:28 +0000 (17:28 +0000)]
- added more TARGET_HALTED checks for the read/write_memory handlers
- added new commands arm11 mrc and arm11 mcr to generate these instructions during debug
Thanks Michael Bruck

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

16 years agotypo.
oharboe [Sat, 8 Mar 2008 10:21:56 +0000 (10:21 +0000)]
typo.

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

16 years ago- Improves error handling upon GDB connect
oharboe [Fri, 7 Mar 2008 21:49:16 +0000 (21:49 +0000)]
- Improves error handling upon GDB connect
- switch to synchronous halt during connect. This fixes the bug
  where poll() was not invoked between halt() and servicing the
  'g' register packet
- halt() no longer returns error code when target is already halted, just
  logs a warning. Only the halt() implementation can say anything
  meaningful about why a halt() failed, so error messages are pushed
  up to halt()
- fixed soft_reset_halt infinite loop bug in arm7_9_common.c. The rest
  of the implementations are still busted.
- by using USER() instead of command_print() the log gets the
  source + line #. Nice.
- no longer invoke exit() if soft_reset_halt fails. A reset can often
  fix the problem.

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

16 years agoAsynchronous output information from e.g. a halt is now displayed again.
oharboe [Fri, 7 Mar 2008 21:41:34 +0000 (21:41 +0000)]
Asynchronous output information from e.g. a halt is now displayed again.

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

16 years ago- fix cross endian ELF loading
vpalatin [Fri, 7 Mar 2008 16:51:37 +0000 (16:51 +0000)]
- fix cross endian ELF loading

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

16 years ago- The elf loader incorrectly assumed that the program header always follows the ELF...
ntfreak [Fri, 7 Mar 2008 16:38:02 +0000 (16:38 +0000)]
- The elf loader incorrectly assumed that the program header always follows the ELF header. (Thanks Michael Bruck)

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

16 years agoMichael Bruck: fixed warnings
oharboe [Fri, 7 Mar 2008 16:18:56 +0000 (16:18 +0000)]
Michael Bruck: fixed warnings

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

16 years agoEdgar Grimberg, fix arm926ejs_examine_debug_reason return value.
oharboe [Fri, 7 Mar 2008 16:15:46 +0000 (16:15 +0000)]
Edgar Grimberg, fix arm926ejs_examine_debug_reason return value.

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

16 years agoAdded some timeout handling to XScale so OpenOCD doesn't get
oharboe [Fri, 7 Mar 2008 11:44:46 +0000 (11:44 +0000)]
Added some timeout handling to XScale so OpenOCD doesn't get
completely stuck when the target needs a reset.

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

16 years agominor corrections for target scripts.
oharboe [Fri, 7 Mar 2008 11:42:03 +0000 (11:42 +0000)]
minor corrections for target scripts.

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

16 years ago- correct spelling typo in stm32x flash driver
ntfreak [Fri, 7 Mar 2008 11:29:08 +0000 (11:29 +0000)]
- correct spelling typo in stm32x flash driver

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

16 years agoPavel Chromy, the patch fixes an issue with PRESTO & FTD2XX under Linux.
oharboe [Fri, 7 Mar 2008 11:24:44 +0000 (11:24 +0000)]
Pavel Chromy, the patch fixes an issue with PRESTO & FTD2XX under Linux.

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

16 years agoalloc_printf and alloc_vprintf
oharboe [Fri, 7 Mar 2008 10:55:59 +0000 (10:55 +0000)]
alloc_printf and alloc_vprintf

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

16 years agowi-9c target scripts
oharboe [Fri, 7 Mar 2008 10:54:43 +0000 (10:54 +0000)]
wi-9c target scripts

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

16 years agoRemoved code that inserted prompt after printing asynchronous information. Current...
oharboe [Fri, 7 Mar 2008 10:53:50 +0000 (10:53 +0000)]
Removed code that inserted prompt after printing asynchronous information. Current implementation was broken beyond repair.

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

16 years ago- added str912/str710_program.script
mifi [Fri, 7 Mar 2008 08:46:24 +0000 (08:46 +0000)]
- added str912/str710_program.script
- added test infos from r459

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

16 years agoremoved excessive debug output. Perhaps a debug_level 4 should be introduced? Hopeful...
oharboe [Fri, 7 Mar 2008 08:07:07 +0000 (08:07 +0000)]
removed excessive debug output. Perhaps a debug_level 4 should be introduced? Hopefully it can be avoided as this was the only case where debug output was going through the roof.

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

16 years agoCosmetic fixes from Uwe Hermann
oharboe [Fri, 7 Mar 2008 06:58:31 +0000 (06:58 +0000)]
Cosmetic fixes from Uwe Hermann

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

16 years agoPavel Chromy: va_copy should always be paired with va_end.
oharboe [Thu, 6 Mar 2008 17:13:33 +0000 (17:13 +0000)]
Pavel Chromy: va_copy should always be paired with va_end.

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

16 years agoretired
oharboe [Thu, 6 Mar 2008 17:11:35 +0000 (17:11 +0000)]
retired

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

16 years agouse jtag_execute_queue() instead of jtag->execute_queue()
oharboe [Thu, 6 Mar 2008 14:20:12 +0000 (14:20 +0000)]
use jtag_execute_queue() instead of jtag->execute_queue()

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

16 years agotms is never referenced, confusing old code left behind probably.
oharboe [Thu, 6 Mar 2008 14:19:29 +0000 (14:19 +0000)]
tms is never referenced, confusing old code left behind probably.

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

16 years agocomment.
oharboe [Thu, 6 Mar 2008 14:16:45 +0000 (14:16 +0000)]
comment.

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

16 years agoPavel Chromy: faster alloc_printf()
oharboe [Thu, 6 Mar 2008 12:38:11 +0000 (12:38 +0000)]
Pavel Chromy: faster alloc_printf()

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

16 years agoPavel Chromy: performance tweak of gdb_put_packet_inner() removing malloc and avoidin...
oharboe [Thu, 6 Mar 2008 12:04:27 +0000 (12:04 +0000)]
Pavel Chromy: performance tweak of gdb_put_packet_inner() removing malloc and avoiding memcpy of larger blocks of data,

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