I just bought the busblaster 2.5 as a replacement for the olimex arm-usb-tiny-h. While the arm-usb-tiny-h just works out of the box the buslaster won't see anything most of the time (see output below). The setup is exactly the same as in viewtopic.php?f=37&t=5478
I am actually not sure if this is supposed to work out of the box. Is the busblaster 2.5 in its delivery state compatible to the openocd busblaster.cfg distributed e.g. with a ubuntu 13.04?
The odd thing is that sometimes (~1 out of 10 attempts) certain things seem to work. E.g. in the output below the line
Info : JTAG tap: at91sam7s.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
tells me that sometimes the jtag transfer does work. But most of the time it doesn't (like a few lines later).
What may be the reason for this unreliability? Sounds like the wiring is correct as otherwise the correct jtag ids would never be returned. It seems there's a timing problem or missing pullups or similar ...
The schematic of the sam7-p256 is available here: https://www.olimex.com/Products/ARM/Atm ... -REV-F.pdf
Till
openocd -f interface/busblaster.cfg -f target/at91sam7sx.cfg --command "adapter_khz 10000; init; reset init; flash protect 0 0 7 off; sleep 1; arm7_9 fast_memory_access enable; flash write_bank 0 firmware.bin 0x0; resume; shutdown"
Open On-Chip Debugger 0.6.1 (2012-12-06-17:21)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain
Warn : use 'at91sam7s.cpu' as target identifier, not '0'
adapter speed: 10000 kHz
Info : max TCK change to: 30000 kHz
Info : clock speed 10000 kHz
Info : JTAG tap: at91sam7s.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
Warn : Unexpected idcode after end of chain: 32 0xfffffffe
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Error: Trying to use configured scan chain anyway...
Error: at91sam7s.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : Embedded ICE version 0
Error: unknown EmbeddedICE version (comms ctrl: 0x00000000)
Info : at91sam7s.cpu: hardware has 2 breakpoint/watchpoint units
Info : TAP at91sam7s.cpu does not have IDCODE
Warn : JTAG tap: at91sam7s.cpu UNEXPECTED: 0x00000000 (mfg: 0x000, part: 0x0000, ver: 0x0)
Error: JTAG tap: at91sam7s.cpu expected 1 of 1: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
Warn : Unexpected idcode after end of chain: 1 0xfffffffe
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Error: Trying to use configured scan chain anyway...
Error: at91sam7s.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : srst pulls trst - can not reset into halted mode. Issuing halt after reset.
Warn : ThumbEE -- incomplete support
target state: halted
target halted in ThumbEE state due to debug-request, current mode: System
cpsr: 0xffffffff pc: 0x3ffffff9
requesting target halt and executing a soft reset
Error: Jazelle state handling is BROKEN!
target state: halted
target halted in Jazelle state due to debug-request, current mode: Supervisor
cpsr: 0xffffffd3 pc: 0x00000000
Warn : NOTE! DCC downloads have not been enabled, defaulting to slow memory writes. Type 'help dcc'.
Warn : NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'.
Warn : Cannot identify target as an AT91SAM
Error: auto_probe failed
in procedure 'flash'
make: *** [flash] Error 1