riscv-openocd/src
David Brownell 7cd2617384 initial SWD transport (SWD infrastructure #2)
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: David 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(-)
2010-12-24 18:50:41 -08:00
..
flash stm32x : always use valid flash base address 2010-12-23 13:10:15 +00:00
helper script: support only Tcl comments 2010-12-18 21:04:22 +01:00
jtag initial SWD transport (SWD infrastructure #2) 2010-12-24 18:50:41 -08:00
pld build: add common.mk 2010-11-18 14:05:56 +00:00
server server: remove error value from LOG_INFO 2010-12-21 14:09:00 +01:00
svf svf: various improvements 2010-12-07 08:17:39 +01:00
target initial SWD transport (SWD infrastructure #2) 2010-12-24 18:50:41 -08:00
xsvf build: add common.mk 2010-11-18 14:05:56 +00:00
Makefile.am build: add autobuild jimtcl to configure scripts 2010-11-18 14:05:57 +00:00
ecosboard.c jim tests: use installed 2010-10-29 15:10:51 +02:00
hello.c HELLO: review unused symbols 2010-04-10 17:23:06 +08:00
hello.h HELLO: review unused symbols 2010-04-10 17:23:06 +08:00
main.c logging: turn of stdout/stderr buffering 2010-09-20 20:45:48 +02:00
openocd.c config: add init_targets proc that is executed just before init 2010-12-22 17:44:22 +01:00
openocd.h remove #if logic for openocd_sleep_*lude 2009-12-02 13:26:26 -08:00