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. 05 Jan, 2011 1 commit
  3. 08 Dec, 2010 2 commits
  4. 30 Nov, 2010 2 commits
  5. 13 Aug, 2010 2 commits
  6. 19 Jul, 2010 1 commit
    • David Brownell's avatar
      more careful luminary init · 61218417
      David Brownell authored
      
      
      Set up more of the Luminary-specific signals, and stop cloning
      a few of the JTAG defaults.  More comments too.
      
      Still leaves the "dap info 0" bugs unresolved (presumably coupled
      to this particular adapter family) where TPIU, ITM, DWT, and other
      debug modules wrongly display as extra NVICs.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      61218417
  7. 18 Jul, 2010 1 commit
  8. 09 Jul, 2010 2 commits
  9. 02 Jul, 2010 2 commits
    • David Brownell's avatar
      initial "transport" framework · 93f2afa4
      David Brownell authored
      
      
      This adds the guts of a transport framework with initialization,
      which should work with current JTAG-only configurations (tested
      with FT2232).
      
      Each debug adapter can declare the transports it supports, and
      exactly one transport is initialized.  (with its commands) in
      any given OpenOCD session.
      
        * Define a new "struct transport with init hooks and a few
       "transport"  subcommands to support it:
      
           "list" ... list the transports configured (just "jtag" for now)
           "select" ... makes the debug session use that transport
           "init" ... initializes the selected transport (internal)
      
        * "interface_transports" ... declares transports the current interface
          can support.  (Some will do this from C code instead, when there are
          no hardware versioning (or other) issues to prevent it.
      
      Plus some FT2232 tweaks, including a few to streamline upcoming
      support for an SWD transport (initially for Luminary adapters).
      
      Eventually src/jtag should probably become src/transport, moving
      jtag-specific stuff  to transport/jtag.
      
      Signed-off-by: default avatarDavid Brownell <db@helium.(none)>
      93f2afa4
    • Spencer Oliver's avatar
      ft2232: revert ft2232_read_scan changes · deb176d3
      Spencer Oliver authored
      Revert change made in commit dd88b461
      
      .
      Caused segfaults when using ftdi driver under win32.
      
      Signed-off-by: default avatarSpencer Oliver <ntfreak@users.sourceforge.net>
      deb176d3
  10. 01 Jul, 2010 3 commits
  11. 07 Jun, 2010 1 commit
  12. 24 Mar, 2010 1 commit
  13. 22 Mar, 2010 1 commit
    • David Brownell's avatar
      ft2232 init mess cleanup · c2f714bd
      David Brownell authored
      
      
      In the ft2232 driver, initialization for many layouts punts to a routine
      called usbjtag_init(), instead of a routine specific to each layout.
      
      That routine is  a mess  built around a "what type layout am I" core.
      That's a bad design ... in this case, especially so, since it bypasses
      the layout-specific dispatch which was just done, and obfuscates the
      initialization which is at least somewhat generic, instead of being
      specific to the "usbjtag" layout.
      
      Split and document out the generic parts of usbjtag_init(), and make
      the rest of those layouts have layout-specific init methods.  Also,
      rename usbjtag_reset() ... that also was not specific to the "usbjtag"
      layout, and thus contributed to the previous code structure confusion.
      
      (Eventually, all layout-specific code (and method tables) should probably
      live in files specific to each layout.  These changes will facilitate
      those and other cleanups to this driver.)
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      c2f714bd
  14. 19 Mar, 2010 1 commit
  15. 15 Mar, 2010 1 commit
  16. 14 Mar, 2010 1 commit
    • David Brownell's avatar
      FT2232: lookup and save layout just once · c23d4596
      David Brownell authored
      
      
      Streamline use of the layout:  have the "ft2232_layout" command
      look it up and save the result, instead of having a few different
      chunks of code looking it up later, and saving just its name (which
      is already part of the layout).  This
      
         - is cleaner
         - reports errors sooner
         - facilitates earlier adapter-specific setup
         - removes unused "default to "usbjtag" logic
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      c23d4596
  17. 28 Feb, 2010 3 commits
  18. 27 Feb, 2010 1 commit
  19. 25 Feb, 2010 1 commit
    • Mariano Alvira's avatar
      ft2232: add a mechanism to specify channel in layout structs · 4a64820f
      Mariano Alvira authored
      
      
      FT2232-family chips have two or more MPSSE modules.   FTDI documentation
      calls these channels.  JTAG adapter drivers thus need to be able to choose
      which channel to use.  (For example, one channel may connect to a board's
      microcontroller, while another connects to a CPLD.)
      
      Since each channel has its own USB interface, libftdi (somewhat confusingly)
      identifies channels using INTERFACE_* symbols.  Most boards use INTERFACE_A
      for JTAG, which is the default in OpenOCD.  But some wire up a different one.
      
      Note that there are two facets of what makes a wiring "layout":
      
       - The mapping between debug signals map and channel signals ... embedded
         in C functions.
      
       - Label used in Tcl configuration scripts ... part of the "layout" structure.
      
      By letting the channel be part of the layout struct, we permit sharing the C
      functions between Tcl-visible layouts, when those signal mappings are reused.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      4a64820f
  20. 22 Feb, 2010 1 commit
  21. 03 Jan, 2010 3 commits
  22. 28 Dec, 2009 1 commit
    • David Brownell's avatar
      Fix Luminary FT2232 layout docs/configs · ec297e4b
      David Brownell authored
      
      
      Most of this patch updates documentation and comments for various
      Luminary boards, supporting two bug fixes by helping to make sense
      of the current mess:
      
       - Recent rev C lm3s811 eval boards didn't work.  They must use
         the ICDI layout, which sets up some signals that the older
         boards didn't need.  This is actually safe and appropriate
         for *all* recent boards ... so just make "luminary.cfg" use
         the ICDI layout.
      
       - "luminary-lm3s811.cfg", was previously unusable!  No VID/PID;
         and the wrong vendor string.  Make it work, but reserve it
         for older boards where the ICDI layout is wrong.
      
       - Default the LM3748 eval board to "luminary.cfg", like the
         other boards.  If someone uses an external JTAG adapter, all
         boards will use the same workaround (override that default).
      
      The difference between the two FT2232 layouts is that eventually
      the EVB layout will fail cleanly when asked to enable SWO trace,
      but the ICDI layout will as cleanly be able to enable it.  Folk
      using "luminary.cfg" with Rev B boards won't see anything going
      wrong until SWO support is (someday) added.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      ec297e4b
  23. 03 Dec, 2009 4 commits
    • Zachary T Welch's avatar
      change #include "interface.h" to <jtag/interface.h> · 165fb930
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "interface.h"
      
      the following form should be used.
      
      	#include <jtag/interface.h>
      
      The exception is from .c files in the same directory.
      165fb930
    • Zachary T Welch's avatar
      change #include "commands.h" to <jtag/commands.h> · c9e44822
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "commands.h"
      
      the following form should be used.
      
      	#include <jtag/commands.h>
      
      The exception is from .c files in the same directory.
      c9e44822
    • Zachary T Welch's avatar
      change #include "time_support.h" to <helper/time_support.h> · 6512e5e3
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "time_support.h"
      
      the following form should be used.
      
      	#include <helper/time_support.h>
      
      The exception is from .c files in the same directory.
      6512e5e3
    • Zachary T Welch's avatar
      move jtag drivers to src/jtag/drivers · 865efd82
      Zachary T Welch authored
      Moves JTAG interface drivers to src/jtag/drivers/,
      Adds src/jtag/drivers/Makefile.am.
      Builds libocdjtagdrivers.la.
      
      Flattens the rlink driver files into the drivers/ directory, adding
      the 'rlink_' prefix or '.rlink' suffix as appropriate.
      865efd82
  24. 25 Nov, 2009 3 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
      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
      ft2232: use register_commands() · 3ab599a7
      Zachary T Welch authored
      Use register_commands() with a command registration array.
      3ab599a7