]> git.sur5r.net Git - openocd/blob - tcl/target/icepick.cfg
David Brownell <david-b@pacbell.net>:
[openocd] / tcl / target / icepick.cfg
1 # Utilities for TI ICEpick-C ... used in DaVinci, OMAP3, and more.
2
3 # jrc   == TAP name for the ICEpick
4 # port  == a port number, 0..15
5 proc icepick_c_tapenable {jrc port} {
6
7         # NOTE:  it's important not to enter RUN/IDLE state until
8         # done sending these instructions and data to the ICEpick.
9         # And never to enter RESET, which will disable the TAPs.
10
11         # select router
12         irscan $jrc 7 -endstate IRPAUSE
13         drscan $jrc 8 0x89 -endstate DRPAUSE
14
15         # set ip control
16         irscan $jrc 2 -endstate IRPAUSE
17         drscan $jrc 32 [expr 0xa0002108 + ($port << 24)] -endstate DRPAUSE
18
19         irscan $jrc 0x3F -endstate RUN/IDLE
20         runtest 10
21 }
22
23 # vim:syntax tcl