I think the issue was that I did the checkout on top of the old openocd directory.
Windows permissions silently prevented the checkout replacing all files it seems.
So I removed the openocd directory and then did the checkout again.
This time your latest version was copied in and starts when connecting to the ST-LINK on the Nucleo...
Code: Select all
Open On-Chip Debugger 0.10.0+dev-00146-g1025be363 (2017-06-11-20:37)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warn : Interface already configured, ignoring
Error: already specified hl_layout stlink
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 : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v28 API v2 SWIM v18 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.269129
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
However, then when attempting to run the compiled test code binary under debug I get...
Code: Select all
Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0x10006463
Warn : Cannot identify target as a STM32 family.
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected
So seems that the "cherry pick" patches from http://openocd.zylin.com/#/c/4045/ are perhaps not in your openocd build?
Thanks,
Bob