Commit Graph

  • d300ecfc8e fixed gaffe for default examine implementation oharboe 2008-04-11 15:49:31 +00:00
  • c688c1cf48 Reset wip. Just adding hooks. This is just to reduce the size of the actual change, no change in behaviour. oharboe 2008-04-11 14:11:16 +00:00
  • c4a2fdbc39 Reset wip. Just adding hooks. This is just to reduce the size of the actual change, no change in behaviour. oharboe 2008-04-11 14:06:42 +00:00
  • 0d7d64b5e9 Wip - split target setup and target examination oharboe 2008-04-11 11:19:17 +00:00
  • 7805be1b3a added target->type->examine(). Eventually this will allow for bringing up telnet/gdb *before* jtag chain has been validated + it might fix some reset halt problems seen as examine() needs to run after TRST has been asserted. oharboe 2008-04-11 06:52:52 +00:00
  • a7d3a4a7f8 Improved XScale performance for embedded hosted OpenOCD oharboe 2008-04-11 06:45:27 +00:00
  • df9adb7b23 - remove AC_C_VARARRAYS and set check of autoconf back to 2.59 mifi 2008-04-10 19:49:47 +00:00
  • 2b16509675 stop using variable sized arrays. That's something that belongs to C++ and not C. oharboe 2008-04-10 19:44:56 +00:00
  • 518bce6c08 - added svn props for newly added parport.cfg ntfreak 2008-04-10 11:45:54 +00:00
  • 9c3dec377e - single core context used, removed debug context as thought unnecessary. - DCRDR now used to access special core registers - info is currently omitted from the cortex_m3 TRM ARM have told me this is the preferred access method and the docs will be updated soon. - now checks for User Thread Mode and Thread mode when halted. - removed repeated function declarations from command.c - cortex_m3_prepare_reset_halt removed, updated cortex_m3_assert_reset to suit ntfreak 2008-04-10 11:43:48 +00:00
  • 1ade331ba9 - due to previous patch adding AC_C_VARARRAYS, autoconf v2.61 min required ntfreak 2008-04-10 10:11:04 +00:00
  • 44fd861b75 target lib wip oharboe 2008-04-09 14:21:14 +00:00
  • b22ae9006b back out Don Porges workaround for some device with manufcaturer # 0x1a2 oharboe 2008-04-09 12:58:19 +00:00
  • 23939e4fc3 - add missing svn props ntfreak 2008-04-09 07:31:24 +00:00
  • 2585fc3420 Don Porges fixed c99 issues. oharboe 2008-04-09 05:55:23 +00:00
  • a064722743 - 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 oharboe 2008-04-09 05:50:34 +00:00
  • 94320a1dc3 use jtag.c's cur/end_state global variables. oharboe 2008-04-08 19:23:50 +00:00
  • de330ca559 Edwin Olson found bug & tested fix for flash write_image for stellaris. oharboe 2008-04-08 18:55:39 +00:00
  • 30cda620cb lm3s6965.cfg contributed by Edwin Olson oharboe 2008-04-08 16:37:01 +00:00
  • a4ed848171 added a couple of LOG_ERROR() messages to improve logfile. oharboe 2008-04-08 16:27:50 +00:00
  • eabb49b570 Pavel pointed out that jtag_add_tlr() is better than jtag_add_tms(). oharboe 2008-04-08 13:08:36 +00:00
  • 4b2defe678 The endstate now reports the endstate of the queue instead of reading endstate variable internal to the driver. oharboe 2008-04-08 09:03:49 +00:00
  • 0d4f8fc824 Spen fixed various issues w.r.t. setting up the sockets for optimal performance. oharboe 2008-04-07 17:29:21 +00:00
  • 2b7504c279 - 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. oharboe 2008-04-07 10:48:44 +00:00
  • a2c45daf78 at91eb40a.elf moved to src/target/ecos oharboe 2008-04-07 05:42:28 +00:00
  • 769fa69b9a avoid patch trouble by isolating troublesome line... oharboe 2008-04-06 19:59:32 +00:00
  • bb0830da6d - added note to docs about gdb 6.8 and memory map support ntfreak 2008-04-05 10:07:12 +00:00
  • 381dc0efab - 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. oharboe 2008-04-04 14:09:03 +00:00
  • 35b3c95299 - 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 oharboe 2008-04-04 13:47:38 +00:00
  • 7abe97565e added query of reset speed oharboe 2008-04-04 07:43:04 +00:00
  • 32cc2202f0 - added test results mifi 2008-04-03 19:42:30 +00:00
  • d3f0549f08 - 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 oharboe 2008-04-03 14:00:17 +00:00
  • 349f62f74f Edgar Grimberg sharpened the str912 target script. oharboe 2008-04-02 14:47:21 +00:00
  • 6549d376e4 fix flash info - now reports erased state properly oharboe 2008-04-02 14:40:35 +00:00
  • 2a2935573e Added timeout(instead of infinite loop) to soft_reset_halt oharboe 2008-04-02 06:37:08 +00:00
  • b174a5b6a3 optional count argument to mwX oharboe 2008-04-02 06:21:24 +00:00
  • ff53e47b54 - fixes for jtag_khz committed. - wip, flash fillw/h/b. For testing purposes. oharboe 2008-04-01 17:48:09 +00:00
  • afe5371bc8 Do not assert trst in srst_only case even if srst_pulls_trst. oharboe 2008-03-31 19:39:05 +00:00
  • 86d3e74464 target_call_timer_callbacks_now() now invokes periodic callbacks immediately oharboe 2008-03-31 19:34:01 +00:00
  • 408e1d86a0 Removed exit()'s. A reset is usually enough to work around these, reducing cycle times to get config scripts right. oharboe 2008-03-31 19:32:38 +00:00
  • a3a3426e86 make jtag_add_statemove() internal to the driver. oharboe 2008-03-31 13:18:03 +00:00
  • 77d73b2523 Edgar Grimberg: added needed delays oharboe 2008-03-28 11:28:54 +00:00
  • 4411c2643e TAP_SD/SI are now forbidden end states. jtag_add_reset() now returns void streamlining the API oharboe 2008-03-26 13:29:48 +00:00
  • 2df3ca97a7 hooks for multithreading. Disable nagle oharboe 2008-03-26 13:18:23 +00:00
  • d47e1b8f36 - rename log functions to stop conflicts under win32 (wingdi) ntfreak 2008-03-25 15:45:17 +00:00
  • a96f96d1f0 - gdb server was incorrectly sending null terminator on qXfer:features:read: packet - armv7m now sends correct gdb register packet ntfreak 2008-03-22 14:19:46 +00:00
  • ae176daac8 - updated docs with new commands/features - added deprecated/removed commands chapter ntfreak 2008-03-22 14:09:27 +00:00
  • f669c50fc9 - changed jtag_add_reset errors to warnings - removed extra jtag reset warnings from arm7_9 and cortex_m3 ntfreak 2008-03-22 10:30:00 +00:00
  • 4622cb15a9 - 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 ntfreak 2008-03-21 12:53:29 +00:00
  • 5a4525613d - added new test results mifi 2008-03-21 11:27:42 +00:00
  • 87939e553d - 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 drath 2008-03-17 21:39:18 +00:00
  • 3b2a068ea9 added profile command. It was added to simplify evaluation by testers. oharboe 2008-03-14 11:20:46 +00:00
  • 7e8892ca39 reset and post reset speed & jtag_khz command documented. oharboe 2008-03-13 20:09:33 +00:00
  • 6de8c33c38 Michael Bruck: fixed warnings oharboe 2008-03-13 15:46:40 +00:00
  • 587dd1c392 clarified jtag_khz command. oharboe 2008-03-13 13:58:07 +00:00
  • 9bf081192f added jtag_khz for use with target library oharboe 2008-03-13 11:07:21 +00:00
  • 7de7bc80fc - 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. oharboe 2008-03-13 10:14:41 +00:00
  • a3dbb9cee6 print ms in debug_level 3 logs. Seconds is not enough. oharboe 2008-03-13 08:17:01 +00:00
  • b8dab6d056 XScale excessive waiting fix. oharboe 2008-03-13 08:16:34 +00:00
  • 979d6b7943 marked infinite loop in code w/TODO and fixed warning. oharboe 2008-03-13 08:05:10 +00:00
  • cb0bc93c06 Dominic undid some of my damage. CLK should now be set as intended in all cases. oharboe 2008-03-12 18:05:07 +00:00
  • 65cfb21612 xscale now passes w/bitbang in 505 oharboe 2008-03-12 16:03:30 +00:00
  • 45af9d83c9 The bitbang driver leaves the TCK 0 when in idle oharboe 2008-03-12 16:01:30 +00:00
  • 9bf8a4e48b 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. oharboe 2008-03-12 14:45:26 +00:00
  • 10c3b1c936 fixed regression in XScale introduce in 297 oharboe 2008-03-12 14:38:43 +00:00
  • 460894d51e more info about latest working version oharboe 2008-03-12 08:39:55 +00:00
  • 33c09a0127 Corrections from Dominic oharboe 2008-03-12 08:04:24 +00:00
  • 691b4e0e01 tinkered a bit with testing matrix. oharboe 2008-03-12 07:34:10 +00:00
  • 0313c59555 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. oharboe 2008-03-11 21:32:03 +00:00
  • b9162dcc8e With the recent changes the TRST needs to happen for every reset. oharboe 2008-03-11 21:18:44 +00:00
  • d1fe9bacbb tidy up output a bit. No longer show "accepted connection" inside Telnet session. oharboe 2008-03-11 21:17:46 +00:00
  • 1812a3535c - 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 oharboe 2008-03-11 21:16:57 +00:00
  • 0fe2a5435a - 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 ntfreak 2008-03-11 18:39:43 +00:00
  • 09e303bb8e retire unused code. oharboe 2008-03-11 11:19:15 +00:00
  • ac5fb03521 JTAG_END_STATE is now retired. It is no longer queued. oharboe 2008-03-11 11:03:40 +00:00
  • 9a9cc91bcb - 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. oharboe 2008-03-11 09:06:00 +00:00
  • 970e16603b Pavel Chromy: telnet line buffer size checking, history does not store repeating lines, improved history printing, log callback tweak oharboe 2008-03-11 08:15:54 +00:00
  • 7dc025321c backed out changes from 483. oharboe 2008-03-10 20:19:52 +00:00
  • 088bba4391 more target scripts wip. oharboe 2008-03-10 20:12:46 +00:00
  • 32eea2a254 more target scripts wip. oharboe 2008-03-10 20:12:35 +00:00
  • cce7512ca9 Pavel Chromy: hopefully perfection for async output and prompt/partially typed command line handling. oharboe 2008-03-10 20:05:48 +00:00
  • e378eeec36 Pavel Chromy: the attached patch refines PRESTO support and makes it work with libftdi. oharboe 2008-03-10 17:24:44 +00:00
  • e7b7025cdd prettier async output oharboe 2008-03-10 15:07:21 +00:00
  • 703dc714c8 - 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 oharboe 2008-03-10 14:14:15 +00:00
  • e6dac739cf - 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. oharboe 2008-03-10 14:07:28 +00:00
  • 0424155dfc - 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) oharboe 2008-03-10 12:11:07 +00:00
  • 0a34980f2b - 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. oharboe 2008-03-10 12:04:30 +00:00
  • ecb227f10c added stm32.cfg to install list oharboe 2008-03-10 10:20:26 +00:00
  • 4486a8f814 Michael Bruck: fix warning oharboe 2008-03-09 19:22:51 +00:00
  • 5808db821f - add stm32 target script ntfreak 2008-03-09 09:28:12 +00:00
  • ddd987502a - 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 ntfreak 2008-03-08 17:28:28 +00:00
  • 21bc69bc37 typo. oharboe 2008-03-08 10:21:56 +00:00
  • c78b4fe426 - 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. oharboe 2008-03-07 21:49:16 +00:00
  • 29fc9b2596 Asynchronous output information from e.g. a halt is now displayed again. oharboe 2008-03-07 21:41:34 +00:00
  • a3f35e348e - fix cross endian ELF loading vpalatin 2008-03-07 16:51:37 +00:00
  • 984e9f0e44 - The elf loader incorrectly assumed that the program header always follows the ELF header. (Thanks Michael Bruck) ntfreak 2008-03-07 16:38:02 +00:00
  • d3f3f61498 Michael Bruck: fixed warnings oharboe 2008-03-07 16:18:56 +00:00
  • 081bc06112 Edgar Grimberg, fix arm926ejs_examine_debug_reason return value. oharboe 2008-03-07 16:15:46 +00:00
  • 8bc200e1fe Added some timeout handling to XScale so OpenOCD doesn't get completely stuck when the target needs a reset. oharboe 2008-03-07 11:44:46 +00:00
  • c9f1b34077 minor corrections for target scripts. oharboe 2008-03-07 11:42:03 +00:00