1. 09 Jan, 2011 1 commit
    • Eric Wetzel's avatar
      nit: more LOG_* \n fixes · 0535531d
      Eric Wetzel authored
      Remove extra \n from LOG_DEBUG, LOG_INFO, and LOG_WARNING messages
      
      Remove LOG_INFO_N
      LOG_INFO_N was only used once and had a \n at the end
      
      Change LOG_USER_N calls that end with \n to LOG_USER
      0535531d
  2. 25 Dec, 2010 1 commit
    • David Brownell's avatar
      initial SWD transport (SWD infrastructure #2) · 7cd26173
      David Brownell authored
      
      
      This piggy backs on JTAG so it's not yet pretty, but that
      seems unavoidable so far given today's OpenOCD internals.
      
      SWD init and data transfer  are unfinished and untested, but
      that should cause no regressions, and will be addressed by
      the time drivers start using this infrastructure.  Checking
      in whould get the code working better sooner, and turn up any
      structural/architectural issues while they're easier to fix.
      
      The debug adapter drivers will provide simple SWD driver
      structs with methods that kick in as needed (instead of JTAG).
      So far just one adapter driver has been updated (not yet
      ready to use or circulate).
      
      The biggest issues are probably
        - fault handling, where the ARM Debug Interface V5 pipelining
          needs work in both JTAG and SWD modes and
        - missing  rewrite of block I/O code to work on both of our
      Cortex-ready transports (Current code is  hard-wired to JTAG);
      relates also to the pipelining issue.
        - omitted support to activate/deactivate SWO/SWV trace (this is
          technically trivial, but configuring what to trace is NOT.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      ----
      
       doc/openocd.texi        |   17 ++
       src/jtag/core.c         |    3
       src/jtag/interface.h    |    4
       src/jtag/jtag.h         |    2
       src/jtag/swd.h          |  114 +++++++++++++++++++
       src/jtag/tcl.c          |    2
       src/target/adi_v5_swd.c |  281 ++++++++++++++++++++++++++++++++++++++++++++++--
       src/target/arm_adi_v5.c |    8 +
       src/target/arm_adi_v5.h |    3
       9 files changed, 425 insertions(+), 9 deletions(-)
      7cd26173
  3. 29 Oct, 2010 1 commit
  4. 12 Aug, 2010 1 commit
  5. 02 Aug, 2010 1 commit
  6. 05 May, 2010 1 commit
  7. 04 Apr, 2010 1 commit
    • David Brownell's avatar
      buildfix · d37a10da
      David Brownell authored
      
      
      Without this, a system using gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
      aborts builds after reporting:
      
      tcl.c: In function ‘handle_irscan_command’:
      tcl.c:1168: warning: passing argument 1 of ‘buf_set_u32’ discards qualifiers from pointer target type
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      d37a10da
  8. 27 Mar, 2010 1 commit
    • David Brownell's avatar
      jtag/tcl.c cleanup -- split out "adapter.c" · d60ebc0a
      David Brownell authored
      
      
      Clean up the jtag/tcl.c file, which was one of the biggest and
      messiest ones in that directory.  Do it by splitting out all the
      generic adapter commands to a separate "adapter.c" file (leaving
      the "tcl.c" file holding only JTAG utilities).
      
      Also rename the little-used "jtag interface" to "adapter_name", which
      should have been at least re-categorized earlier (it's not jtag-only).
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      d60ebc0a
  9. 21 Mar, 2010 1 commit
  10. 15 Mar, 2010 4 commits
  11. 14 Mar, 2010 1 commit
  12. 11 Mar, 2010 1 commit
    • David Brownell's avatar
      split "interface" commands from "jtag" ones · 591e0bba
      David Brownell authored
      
      
      We'll need to be able to work with debug adapter interfaces (drivers)
      even when they're not used for JTAG ... for example, while there are
      multi-transport drivers which support JTAG *and* several other
      transports (or just one more, like SWD) there are also adapters
      with more limited goals (and no JTAG support at all).
      
      Start decoupling the two concepts ("debug adapter driver", "jtag")
      by having two command groups, which initialize separately.
      
      This will help us support OpenOCD sessions using only non-JTAG
      transports, in which JTAG commands should not be registered.
      Update docs to mention that the JTAG, SVF, and XSVF commands
      won't work without a JTAG transport.
      
      Note that at least commands working with SRST are still inappropriately
      coupled  to JTAG ... inappropriate because (a) SRST is not part of the
      JTAG standard, for all that many platforms (like ARM) expect it; and also
      (b) because they're used with non-JTAG debug and programming interfaces,
      too.  They should perhaps become generic "interface" operations at some
      point.  (Similarly with the clock rate to be used by a given adapter.)
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      591e0bba
  13. 08 Mar, 2010 2 commits
  14. 18 Jan, 2010 1 commit
  15. 11 Jan, 2010 1 commit
  16. 10 Jan, 2010 1 commit
  17. 16 Dec, 2009 1 commit
  18. 14 Dec, 2009 1 commit
  19. 04 Dec, 2009 2 commits
  20. 02 Dec, 2009 1 commit
  21. 01 Dec, 2009 1 commit
  22. 28 Nov, 2009 5 commits
    • Zachary T Welch's avatar
      split jim_newtap_cmd into pieces · f8a62fb9
      Zachary T Welch authored
      Moves the ID and IR-related option parsing to static helpers, removing
      two levels of indent.
      f8a62fb9
    • Zachary T Welch's avatar
      improve jtag_tap_configure · 7124be82
      Zachary T Welch authored
      Splits bulk of the jtag_tap_configure into jtag_tap_configure_event,
      removing three or four levels of indentation in the process.
      The resulting code was stylistically improved in other ways, but it
      should be functionally identical.
      7124be82
    • Zachary T Welch's avatar
      improve jtag_tap_handle_event indentation · 4ff5eda5
      Zachary T Welch authored
      Use 'continue' to reduce identation levels and superfluous logic.
      4ff5eda5
    • Zachary T Welch's avatar
      begin moving JTAG jim handlers/helpers · 0377e5b5
      Zachary T Welch authored
      Moves the tertiary jim handlers and required static helpers to the top
      of tcl.c, defining them in a new registration array that is chained in
      both the top-level context and under the jtag command.  The top-level
      commands can be removed at some point in the future to reduce clutter.
      0377e5b5
    • Zachary T Welch's avatar
      split jim_jtag_command into multiple handlers · c4992c6d
      Zachary T Welch authored
      Explodes the 'jtag' into separate command handlers, which are easier
      to understand and extend.  Makes the code much easier to understand,
      though further simplifications are possible.  This patch tries to
      minimize the noise when viewed with 'git diff -w'.
      
      Gives these commands improved built-in help and usage information.
      c4992c6d
  23. 25 Nov, 2009 5 commits
    • Zachary T Welch's avatar
      use ARRAY_SIZE macro · 4946925b
      Zachary T Welch authored
      Search and destroy lingering cases where the ARRAY_SIZE macro should
      be used to convey more intrinsic meaning in the OpenOCD code.
      4946925b
    • Zachary T Welch's avatar
      add jim_handler to command_registration · 17a9dea5
      Zachary T Welch authored
      Adding jim_handler field to command_registration allows removing the
      register_jim helper.  All command registrations now go through the
      register_command{,s}() functions.
      17a9dea5
    • Zachary T Welch's avatar
      remove register_callbacks from jtag interface · 8d46720c
      Zachary T Welch authored
      Changes the jtag_interface->register_callbacks field to a list of
      commands to be registered.  Changes callback to invocation of
      register_commands() with that command registration list.  Removes all
      JTAG interface driver register_command callback functions, which the
      previous commits had converted into identical calls.
      8d46720c
    • Zachary T Welch's avatar
      jtag: use register_commands() · 355a6730
      Zachary T Welch authored
      Use register commands with command registration array.
      355a6730
    • Zachary T Welch's avatar
      use COMMAND_REGISTER macro · 833e7f52
      Zachary T Welch authored
      Replaces direct calls to register_command() with a macro, to allow
      its parameters to be changed and callers updated in phases.
      833e7f52
  24. 21 Nov, 2009 1 commit
  25. 18 Nov, 2009 1 commit
    • Zachary T Welch's avatar
      use COMMAND_PARSE_ENABLE macro where appropriate · 410fab9e
      Zachary T Welch authored
      Updates all command parsing of simple "enable" and "disable" arguments.
      A few case in the tree use a tri-state or extended arguments, which
      cannot use this simple macro.
      
      Simlifies the xscale icache/dcache command handler logic.
      410fab9e
  26. 17 Nov, 2009 2 commits