someone asked>>  [something like:  But what would a TCL user expect].

Hmm,

What does not happen to day, is the ability to "scan out" data bits and 
capture them in TCL.

I think the following would be helpful

# Goto this state by any means desired, via any random path, really only 
good for RESET
   jtag gotostate  STATENAME

# Goto next state, must be exactly 1 clock/tms step away, can list 
multiple states
   jtag nextstate STATENAME  [... more STATENAMEs]

# Tell this tap to do a specific scan type
#  Tapstate must be CAPTUREDR or CAPTUREIR otherwise error
   jtag  scan -type DR|IR   -bitlen NBITS -iarray  ARRAYNAME  -oarray 
ARRAYNAME -endstate NAME

# Simplistic "ir scans" - of only a few bits
   jtag  scan  -type IR   -bitlen  5  -value VALUE

# Run clocks in RESET,  IRPAUSE, DRPAUSE, or IDLE/RUN state
    jtag  idleclocsk NCLOCKS

# Finally,
    jtag execute

# NOTE: The above commands are "global"
#   and do not account for any tap in bypass, their view is
#   effectively at the end of the dongle cable.

# Wiggle "TRST" and/or SRST pins
   jtag set TRST  0
   jtag set TRST  1
   jtag set SRST  0
   jtag set SRST  1

Examples

    jtag set TRST 0
    jtag set SRST 0
    sleep 500
    jtag set TRST 1
    jtag set SRST 1
   
    jtag   gotostate  RESET
    jtag   gotostate SHIFTIR
# ? not sure here, the idea is to put  the 5 bit value 0x0c in the IR 
register
    jtag   scan -type IR -bitlen 5 -value 0x0c -endstate EXITIR

# Scan out, 35 bits into MYBITS - with, TDI = 1 during the shift.
    jtag  gotostate CAPTUREDR
    jtag scan -type DR -bitlen  35 -tdi 1 -oarray MYBITS  -endstate EXITDR

==
-Duane
==




_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to