Bus Pirate JTAG Programmer Part 2
Where did I leave off yesterday? Oh that right I had just got openocd to talk to my BP. Well I made some female jumpers this evening so that I could connect the the BP and the cygni together.
Step 5) Connecting to the Cygni board. I used the JTAG pinout that DP has on their website for the BP and the corresponding schematic for the cygni off of teholabs site. With the boards now connected together I gave it a go but I got some errors. I reset the BP and then tried again with no luck. I double checked that the boards were connected right and they were. I tried again, no luck. Then I saw that the power light on the cygni was coming on. I assumed that the JTAG supplied power to the board but it wasn't/doesn't. Easy fix. I disconnected VPU and VTref and then gave the cygni 5v from the BP. I ran openocd again and this time success!
Step 7) (teho) Flash the board.
UPDATE: The cygni didn't like being powered by the 5v output of the BP. I'm guessing that it didn't like the power on sequence. Anyway I powered it from USB and ran openocd again. This time it was actually a success!
Step 5) Connecting to the Cygni board. I used the JTAG pinout that DP has on their website for the BP and the corresponding schematic for the cygni off of teholabs site. With the boards now connected together I gave it a go but I got some errors. I reset the BP and then tried again with no luck. I double checked that the boards were connected right and they were. I tried again, no luck. Then I saw that the power light on the cygni was coming on. I assumed that the JTAG supplied power to the board but it wasn't/doesn't. Easy fix. I disconnected VPU and VTref and then gave the cygni 5v from the BP. I ran openocd again and this time success!
$ openocdThere are some errors still which I should investigate. Otherwise I think I am ready to load programs onto the board. Actually I'm not ready. The reset halt command isn't working and I expect it's due to the errors which I'm trying to figure out right now. It also looks nothing like the print out from teholabs. There's no lines regarding devive id, part #, etc. More later once I solve the issue.
Open On-Chip Debugger 0.6.0-dev-00322-g16b6b5e-dirty (2012-01-06-20:43)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Warn : Adapter driver 'buspirate' did not declare which transports it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
srst_only separate srst_gates_jtag srst_open_drain
500 kHz
Info : Buspirate Interface ready!
Info : Want to set speed to 500kHz, but not implemented yet
Error: Translation from jtag_speed to khz not implemented
Info : adapter-specific clock speed value 500
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Warn : Bypassing JTAG setup events due to errors
Info : lm3s36n26.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'telnet' connection from 4444
Step 7) (teho) Flash the board.
UPDATE: The cygni didn't like being powered by the 5v output of the BP. I'm guessing that it didn't like the power on sequence. Anyway I powered it from USB and ran openocd again. This time it was actually a success!
$ openocdThe LED blinks!!
Open On-Chip Debugger 0.6.0-dev-00322-g16b6b5e-dirty (2012-01-06-20:43)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Warn : Adapter driver 'buspirate' did not declare which transports it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
srst_only separate srst_gates_jtag srst_open_drain
500 kHz
Info : Buspirate switched to FAST mode
Info : Buspirate Interface ready!
Info : Want to set speed to 500kHz, but not implemented yet
Error: Translation from jtag_speed to khz not implemented
Info : adapter-specific clock speed value 500
Info : JTAG tap: lm3s3n26.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : lm3s3n26.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'telnet' connection from 4444
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x41000000 pc: 0x01003ebc msp: 0x200007d0
auto erase enabled
Error: couldn't open blink.bin
in procedure 'flash'
auto erase enabled
wrote 1024 bytes from file blinky.bin in 1.735000s (0.576 KiB/s)
Info : Want to set speed to 500kHz, but not implemented yet
Error: Translation from jtag_speed to khz not implemented
in procedure 'adapter_khz'
Info : JTAG tap: lm3s3n26.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
shutdown command invoked
Info : Shutting down buspirate.
Info : Buspirate switched to normal mode


