Hi there,
I’m trying to get a basic sample app on my new olimex stm32-h103 board.
I tried with both OpenOCD v0.4 and v0.5 but with the first I get
e:~/stm32-tools/OpenOCD$ openocd -f ./tcl/interface/olimex-arm-usb-tiny-h.cfg -f ./tcl/board/olimex_stm32_h103.cfg
Open On-Chip Debugger 0.4.0 (2011-09-10-18:08)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
1000 kHz
jtag_nsrst_delay: 100
jtag_ntrst_delay: 100
Info : max TCK change to: 30000 kHz
Info : clock speed 1000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Command handler execution failed
Warn : jtag initialization failed; try 'jtag init' again.
and of course if I telnet to the server and run jtag init it says jtag init already ran.
While with version 0.5 I get
e:~/stm32-tools/OpenOCD$ openocd -f ./tcl/interface/olimex-arm-usb-tiny-h.cfg -f ./tcl/board/olimex_stm32_h103.cfg
Open On-Chip Debugger 0.5.0 (2011-09-10-15:21)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
cortex_m3 reset_config sysresetreq
Info : max TCK change to: 30000 kHz
Info : clock speed 1000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: stm32.cpu: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : Invalid ACK 0 in JTAG-DP transaction
Polling target failed, GDB will be halted. Polling again in 100ms
Polling target failed, GDB will be halted. Polling again in 300ms
Polling target failed, GDB will be halted. Polling again in 700ms
Polling target failed, GDB will be halted. Polling again in 1500ms
I read online while googling that I should have tried with a lower clock speed
so I changed both times to 500Khz but nothing changed.
BTW if I give the board configuration file first in the command line OpenOCD doesn’t
even start.
This is my very first either with OpenOCD or JTAG interfaces for that matter.
Any suggestion is highly appreciated.
Thanks in advance.