cancel
Showing results for 
Search instead for 
Did you mean: 

trying boundary scan on STM32F407G-DISC1 eval board

Test User
Associate III

I have an external ST-LINK programmer and a STM32F407G-DISC1 eval board. The problem when I start then openocd and gdb the cpu is not halted. When I using the onboard ST-LINK everything is OK, the cpu is halted. What may the problem? Here is the log from openocd when I try to use the external ST-LINK. When I use the external ST-LINK the board powered from an external AC adapter and CN3 jumpers are off. I checked the small JTAG cables many times.

"d:\Work\OpenOCD-20190426-0.10.0\Bin\openocd.exe" -f "d:\Work\OpenOCD-20190426-0.10.0\share\openocd\scripts\board\stm32f4discovery.cfg"
Open On-Chip Debugger 0.10.0 (2019-04-26) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 2000 kHz
Info : STLINK V2J34S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 2.899540
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted
 
 
Info : device id = 0x10076413
Warn : STM32 flash size failed, probe inaccurate - assuming 1024k flash
Info : flash size = 1024 kbytes
Info : flash size = 512 bytes
Warn : negative reply, retrying
Warn : negative reply, retrying
Warn : acknowledgment received, but no packet pending
Warn : acknowledgment received, but no packet pending
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted
 
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
adapter speed: 1800 kHz
Error: timed out while waiting for target halted
TARGET: stm32f4x.cpu - Not halted

1 REPLY 1

>>I checked the small JTAG cables many times.

Perhaps the problem lies elsewhere then.

I would probably look at the NRST and TDO/SWO connectivity between the target and on-board ST-LINK

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..