server: add support for pipes
[openocd/cortex.git] / tcl / target / icepick.cfg
blobda92c9ee3233810b97d38b113ed25932fcb9203b
1 # Utilities for TI ICEpick-C ... used in DaVinci, OMAP3, and more.
3 # jrc   == TAP name for the ICEpick
4 # port  == a port number, 0..15
5 proc icepick_c_tapenable {jrc port} {
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.
11         # select router
12         irscan $jrc 7 -endstate IRPAUSE
13         drscan $jrc 8 0x89 -endstate DRPAUSE
15         # set ip control
16         irscan $jrc 2 -endstate IRPAUSE
17         drscan $jrc 32 [expr 0xa0002108 + ($port << 24)] -endstate DRPAUSE
19         irscan $jrc 0x3F -endstate RUN/IDLE
20         runtest 10