1. 31 May, 2009 1 commit
  2. 18 May, 2009 1 commit
  3. 12 May, 2009 1 commit
  4. 11 May, 2009 1 commit
  5. 13 Dec, 2008 1 commit
  6. 30 Nov, 2008 1 commit
  7. 05 Nov, 2008 1 commit
  8. 14 Oct, 2008 1 commit
  9. 13 Oct, 2008 2 commits
  10. 24 Sep, 2008 1 commit
  11. 20 Sep, 2008 1 commit
  12. 01 Sep, 2008 2 commits
  13. 24 Aug, 2008 1 commit
  14. 13 Aug, 2008 1 commit
  15. 06 Aug, 2008 1 commit
  16. 05 Aug, 2008 2 commits
  17. 28 Jul, 2008 1 commit
  18. 25 Jul, 2008 1 commit
  19. 24 Jul, 2008 1 commit
  20. 21 Jul, 2008 1 commit
    • oharboe's avatar
      · dfbb9f3e
      oharboe authored
      - jtag_khz/speed are now single parameter only. These are used
      from pre/post_reset event scripts. Adding the second parameter was
      a mistake seen in retrospect. this gives precise control in post_reset
      for *when* the post reset speed is set. The pre_reset event was
      added *after* the second parameter to jtag_khz/speed
      - the target implementations no longer gets involved in the reset mode
      scheme. Either they reset a target into a halted mode or not.
      detects if the reset halt failed or not.
      - tcl target event names are now target_N_name.  Mainly internal
      at this early stage, but best to get the naming right now.
      - added hardcoded reset modes from gdb_server.c. I don't know precisely what
      these defaults should be or if it should be made configurable. Perhaps some
      hardcoded defaults will do for now and it can be made configurable later.
      - bugfix in cortex_m3.c for reset_run_and_xxx?
      - issue syntax error upon obsolete argument in target command instead of
      printing message that will surely drown in the log
      git-svn-id: svn://svn.berlios.de/openocd/trunk@849 b42882b7-edfa-0310-969c-e2dbd0fdcd60
  21. 08 Jul, 2008 1 commit
  22. 06 Jul, 2008 1 commit
    • oharboe's avatar
      src/helper/configuration.h · dc796a20
      oharboe authored
      	- Log output handlers now get a "const char *line"
      	- Added "const" to parameter.
      	- New function:  'command_output_text()'
      	- Log output handlers now get a "const char *line"
      	- Log output handlers now get a "const char *line"
      	- DO not transmit NULL bytes via TELNET.
      	- Log output handlers now get a "const char *line"
      	- Log output handlers now get a "const char *line"
      	previously to the mailing list for TCL users try
      	previously to the mailing list for TCL users try
      	previously to the mailing list for TCL users try
          - **MAJOR** Work: New TCL/Jim function: mem2array
      	- **MAJOR** Work: Redirect Tcl/Jim stdio output to remote users.
      	- Previously: TCL output did not go to GDB.
      	- Previously: TCL output did not go to TELNET
      	- Previously: TCL output only goes to control console.
      	- This fixes that problem.
      	+ Created callbacks:
      	- New TCL files.
      	- Future note: This should be more automated.  As the list of
      	  'tcl' files grows maintaning this list will suck.
      	- that impliments many [format] specifies JIM did not support.
      	- Jim_FormatString() - **MAJOR** work.
      	- Previously only supported "%s" "%d" and "%c"
      	- And what support existed had bugs.
      	- NEW: *MANY* formating parameters are now supported.
      	- TODO: The "precision" specifier is not supported.
      	** NEW ** This patch.
      	- Jim_StringToWide() test if no conversion occured.
      	- Jim_StringToIndex() test if no conversion occured.
      	- Jim_StringToDouble() test if no conversion occured.
      	** NEW ** This Patch. Major Work.
      	- Previously output from JIM did not get sent to GDB
      	- Ditto: Output to Telnet session.
      	- Above items are now fixed - By introducing callbacks
      	  new function pointers in the "interp" structure.
      	- Helpers that call the callbacks.
      	- New function: Jim_fprintf()
      	- New function: Jim_vfprintf()
      	- New function: Jim_fwrite()
      	- New function: Jim_fread()
      	- New function: Jim_fflush()
      	- New function: Jim_fgets()
      	By default: the output is to STDIO as previous.
      	The "openocd.c" - redirects the output as needed.
      	- Jim_Panic() - Send panic to both STDERR and the interps
      	specified STDERR output as a 2nd choice.
      	- Now JIM's "stdin/stdout/stderr" paramters are "void *"
      	and are no longer "FILE *".
      	- **MAJOR**
      	-  New JIM STDIO callbacks in the "interp" structure.
      	-  change: "stdin/stdout/stderr" are now "void *" cookies.
      	-  New JIM stdio helper functions.
      git-svn-id: svn://svn.berlios.de/openocd/trunk@755 b42882b7-edfa-0310-969c-e2dbd0fdcd60
  23. 25 Jun, 2008 1 commit
  24. 27 May, 2008 1 commit
  25. 23 Apr, 2008 1 commit
  26. 15 Apr, 2008 1 commit
  27. 11 Apr, 2008 2 commits
  28. 09 Apr, 2008 1 commit
  29. 03 Apr, 2008 1 commit
    • oharboe's avatar
      · d3f0549f
      oharboe authored
      - 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
  30. 13 Mar, 2008 2 commits
  31. 10 Mar, 2008 1 commit
    • oharboe's avatar
      - the jtag chain is examined and validated after GDB & telnet servers · e6dac739
      oharboe authored
       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
  32. 07 Mar, 2008 1 commit
    • oharboe's avatar
      · c78b4fe4
      oharboe authored
      - 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
  33. 05 Mar, 2008 1 commit
    • oharboe's avatar
      * fixed malloc corruption in target->debug_reason · 6d950146
      oharboe authored
      	* GDB remote server will now remain online even if the target
      	  is in a funny state, e.g. if it requires a reset, it is
      	  running while GDB is not in the continue or step packet,
      	  e.g. via monitor resume/halt commands in GDB script.
      	* Added some _DEBUG_GDB_IO_ debug tools
      	* Fixed a couple of GDB server lockups, e.g. when O packets
      	  detect a severed connection
      	* added ACK upon connection (send +).
      	* added keep-alive messages to reset so GDB protocol remains happy.
      	* fixed crash when timing out connection to GDB
      git-svn-id: svn://svn.berlios.de/openocd/trunk@445 b42882b7-edfa-0310-969c-e2dbd0fdcd60
  34. 03 Mar, 2008 1 commit
  35. 25 Feb, 2008 1 commit
    • oharboe's avatar
      · 815c3b35
      oharboe authored
      - "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