From d727e31af99cebff95c41fd1d2b319fddea9edd1 Mon Sep 17 00:00:00 2001 From: zwelch Date: Wed, 17 Jun 2009 06:44:29 +0000 Subject: David Brownell : Update the Beagle setup: - OMAP3530 updates: * split ICEpick TAP enable support to its own file, for reuse and eventually for storing other utility code like emulation reset * clean up, including labeling the tap as for DAP not for the Cortex-A8 and making endianness non-variable * add a few FIXMEs - BeagleBoard cleanup: there's no SRST, "endstate" is gone, etc I'm not sure I'd say it's further than "barely limping" just yet. Key issues remain lack of Cortex-A8 support, and more complete support for resetting. git-svn-id: svn://svn.berlios.de/openocd/trunk@2267 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- tcl/target/icepick.cfg | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tcl/target/icepick.cfg (limited to 'tcl/target/icepick.cfg') diff --git a/tcl/target/icepick.cfg b/tcl/target/icepick.cfg new file mode 100644 index 0000000..0597a9a --- /dev/null +++ b/tcl/target/icepick.cfg @@ -0,0 +1,23 @@ +# Utilities for TI ICEpick-C ... used in DaVinci, OMAP3, and more. + +# jrc == TAP name for the ICEpick +# port == a port number, 0..15 +proc icepick_c_tapenable {jrc port} { + + # NOTE: it's important not to enter RUN/IDLE state until + # done sending these instructions and data to the ICEpick. + # And never to enter RESET, which will disable the TAPs. + + # select router + irscan $jrc 7 -endstate IRPAUSE + drscan $jrc 8 0x89 -endstate DRPAUSE + + # set ip control + irscan $jrc 2 -endstate IRPAUSE + drscan $jrc 32 [expr 0xa0002108 + ($port << 24)] -endstate DRPAUSE + + irscan $jrc 0x3F -endstate RUN/IDLE + runtest 10 +} + +# vim:syntax tcl -- cgit v1.1