| 188 | = JTAG = |
| 189 | |
| 190 | |
| 191 | I use a Flyswatter2 from Rusty at Tincan Tools (http://www.tincantools.com/JTAG/Flyswatter2.html). You can also buy an adaptor board for the xM that makes connecting simple. The software is OpenOCD (http://openocd.sourceforge.net/). I build from git with a range of unrelated patches for SMP support on the Zynq. The git repo is http://sourceforge.net/p/openocd/code/ci/master/tree/. I use a special prefix by configuring with the --prefix option to configure. |
| 192 | |
| 193 | To run OpenOCD: |
| 194 | |
| 195 | $ cat bbxm.cfg |
| 196 | source [find interface/ftdi/flyswatter2.cfg] |
| 197 | source [find board/ti_beagleboard_xm.cfg] |
| 198 | init |
| 199 | $ ~/development/openocd/git/bin/openocd -f bbxm.cfg -c "reset" |
| 200 | Open On-Chip Debugger 0.8.0-dev-00014-gd3d0bf2-dirty (2013-07-21-15:32) |
| 201 | Licensed under GNU GPL v2 |
| 202 | For bug reports, read |
| 203 | http://openocd.sourceforge.net/doc/doxygen/bugs.html |
| 204 | Info : only one transport option; autoselect 'jtag' |
| 205 | adapter speed: 10 kHz |
| 206 | Warn : dm37x.dsp: huge IR length 38 |
| 207 | trst_only separate trst_push_pull |
| 208 | Info : clock speed 10 kHz |
| 209 | Info : TAP dm37x.jrc does not have IDCODE |
| 210 | Warn : JTAG tap: dm37x.jrc UNEXPECTED: 0x00000000 (mfg: 0x000, part: 0x0000, ver: 0x0) |
| 211 | Error: JTAG tap: dm37x.jrc expected 1 of 3: 0x2b89102f (mfg: 0x017, part: 0xb891, ver: 0x2) |
| 212 | Error: JTAG tap: dm37x.jrc expected 2 of 3: 0x1b89102f (mfg: 0x017, part: 0xb891, ver: 0x1) |
| 213 | Error: JTAG tap: dm37x.jrc expected 3 of 3: 0x0b89102f (mfg: 0x017, part: 0xb891, ver: 0x0) |
| 214 | Error: Trying to use configured scan chain anyway... |
| 215 | Warn : Bypassing JTAG setup events due to errors |
| 216 | adapter speed: 1000 kHz |
| 217 | Warn : dm37x.cpu: ran after reset and before halt ... |
| 218 | dm37x.cpu: target state: halted |
| 219 | dm37x.cpu: target halted in Thumb state due to debug-request, current mode: Supervisor |
| 220 | dm37x.cpu: cpsr: 0x000001f3 pc: 0x00015dec |
| 221 | dm37x.cpu: MMU: disabled, D-Cache: disabled, I-Cache: enabled |