riscv-openocd/src
David Brownell 6cb1d10cda JTAG: simple autoprobing
This patch adds basic autoprobing support for the JTAG scan chains
which cooperate.  To use, you can invoke OpenOCD with just:

 - interface spec: "-f interface/...cfg"
 - possibly with "-c 'reset_config ...'" for SRST/TRST
 - possibly with "-c 'jtag_khz ...'" for the JTAG clock

Then set up config files matching the reported TAPs.  It doesn't
declare targets ... just TAPs.  So facilities above the JTAG and
SVF/XSVF levels won't be available without a real config; this is
almost purely a way to generate diagnostics.

Autoprobe was successful with most boards I tested, except ones
incorporating C55x DSPs (which don't cooperate with this scheme
for IR length autodetection).  Here's what one multi-TAP chip
reported, with the "Warn:" prefixes removed:

 clock speed 500 kHz
 There are no enabled taps.  AUTO PROBING MIGHT NOT WORK!!
 AUTO auto0.tap - use "jtag newtap auto0 tap -expected-id 0x2b900f0f ..."
 AUTO auto1.tap - use "jtag newtap auto1 tap -expected-id 0x07926001 ..."
 AUTO auto2.tap - use "jtag newtap auto2 tap -expected-id 0x0b73b02f ..."
 AUTO auto0.tap - use "... -irlen 4"
 AUTO auto1.tap - use "... -irlen 4"
 AUTO auto2.tap - use "... -irlen 6"
 no gdb ports allocated as no target has been specified

The patch tweaks IR setup a bit, so we can represent TAPs with
undeclared IR length.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-26 00:36:03 -07:00
..
flash Added the faux flash driver and target. Used for testing. 2009-10-20 12:23:56 +02:00
helper eCos synthetic target updates. 2009-10-21 12:02:04 +02:00
jtag JTAG: simple autoprobing 2009-10-26 00:36:03 -07:00
pld - Replace '){' with ') {'. 2009-06-23 22:49:06 +00:00
server Retired gdb_attach. gdb-detach event covers this functionality. 2009-10-13 13:44:15 +02:00
svf SVF: clean up, mostly for TAP state name handling 2009-10-23 01:00:32 -07:00
target check if mmu is enabled before using mmu code path 2009-10-25 22:15:57 +01:00
xsvf XSVF: use svf_add_statemove() 2009-10-20 20:04:36 -07:00
Makefile.am MinGW: use WinSock2 2009-10-19 17:48:19 -07:00
ecosboard.c disable ZY1000's UART forwarding test code. 2009-10-22 10:23:15 +02:00
main.c Dick Hollenbeck <dick@softplc.com> moved stuff into openocd.c - should never have been in main.c in the first place. DLL will now build. 2009-05-02 19:31:30 +00:00
openocd.c Change most in-tree references from SVN to GIT. 2009-10-08 00:13:50 +00:00