2018-03-22 3:47 AM
Posted on March 22, 2018 at 11:47
I am trying to debug my STM32F407 based board with the ST-LinkV2 adapter. It works fine when i use SWD, but i cannot get a JTAG connection.
Here is the error i get when trying to connect via JTAG:
Wrong device detected
Open On-Chip Debugger 0.10.0-dev-00007-g58350bc-dirty (2018-01-08-12:20)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/html/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter_nsrst_delay: 100
adapter speed: 1125 kHz
Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 1125 kHz
Info : STLINK v2 JTAG v29 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : vid/pid are not identical: 0x0483/0x374B 0x0483/0x3748
Info : using stlink api v2
Info : Target voltage: 3.212598
Error: init mode failed (unable to connect to the target)
in procedure 'init'
in procedure 'ocd_bouncer'
I connected my ST-LinkV2 to the STM32F407VGTx (LQFP100) in the following way:
ST-Link P1 (VAPP) -> STM32 VDD
ST-Link P6 (GND) -> STM32 GND
ST-Link P5 (JTDO) -> STM32 PA15 (JTDI)
ST-Link P13 (JTDI) -> STM32 PB3 (JTDO)
ST-Link P7 (JTMS) -> STM32 PA13 (JTMS)
ST-Link P9 (JTCK) -> STM32 PA14 (JTCK)
But i cannot connect to my processor, neither with St-Link utility nor can i start a debug session with SW4STM32 IDE.
I use 1,25 MHz JTAG since i think thats the maximum the St-Link V2 supports?
Please help.
2018-03-29 6:57 AM
Bump. This is an important question for us.
2018-03-29 8:58 AM
Can you connect using the
http://www.st.com/en/development-tools/stsw-link004.html
?You should try with this first - to see it it's a fundamental issue, or just a problem with the
SW4STM32 IDE ...
2018-03-29 9:11 AM
Hi,
thanks for the answer but i tried already.
2019-01-24 9:41 AM
Hi Patrick,
did you found what the problem was? I'm facing the same issue...
Thanks,