Hi all,
The board im trying to connect to runs a STM32F103RC, with no pull up/down resistors on any of the JTAG lines (TRST, TCK, TMS, TDO, TDI).
I have triple checked that the pins on the JTAGKey are wired correctly to the uC.
Ive been told that the current firmware on the STM32 is locked, so i need to pull BOOT0 high to enable JTAG.
Is there anything else i need to do to enable JTAG?
I haven’t been able to find ST documentation on locked-FW… they must have it VERY well hidden.
So on having BOOT0 pulled high, and running OpenOCD i get:
Open On-Chip Debugger 0.5.0 (2011-08-26-10:27)
Licensed under GNU GPL v2
Info : only one transport option; autoselect 'jtag'
1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
cortex_m3 reset_config sysresetreq
Info : clock speed 1000 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: stm32.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : Invalid ACK 0x7 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
....
My OpenOCD conf file looks like:
source [find interface/jtagkey.cfg]
set WORKAREASIZE 0x5000
source [find target/stm32f1x.cfg]
I have tried various adapter_khz speeds, and also nrst/trst delay times but these dont appear to make any difference.
Any help is muchly appreciated!