Hi,
Although everything setup fine and ST-Link updated to latest firmware, I just cannot have it connect
- I provide 4.8V from a lab power supply to the daisy, it turns on and blink, so my previous soft is running
- the device is recognized in the Device manager

I get that error when I run make program from VSCode command line
$ make program
openocd -s /usr/local/share/openocd/scripts -f interface/stlink.cfg -f target/stm32h7x.cfg \
-c "program ./build/MyProject.elf verify reset exit"
xPack OpenOCD, x86_64 Open On-Chip Debugger 0.11.0-00155-ge392e485e (2021-03-15-16:44)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 1800 kHz
Error: open failed
in procedure 'program'
** OpenOCD init failed **
shutdown command invoked
make: *** [../DaisyExamples/libDaisy/core/Makefile:318: program] Error 1
I tried downloading this
Download xpack-openocd-0.12.0-2-win32-x64.zip (openocd-xpack) (sourceforge.net)
but I don’t know what to do with them, no installer, just exe/dll files
am I missing something ?
anyone ? that’s a lot of investment so far
should I return the dongle ? the daisy seed runs fine
I would gladly help you, but you need to switch to Linux 
On an more serious note, you need openocd 0.12. IME sourceforge has been dead for quite some time, but there maybe some binaries on github.
https://openocd.org/pages/about.html
1 Like
ok but how VSCode knows where to find the executable ? makefile ? path ? env variable ? c:\windows ? project folder ?
in the folder where I run the command
- I copied exe/dll
- I copied the scripts folder from the archive
- I copied both cfg files
I get Debug Adapter has to be specified
$ ./openocd.exe -c "program ./build/MyProcessor.elf verify reset exit" -f ./ocd/interface/stlink.cfg -f ./ocd/target/stm32h7x.cfg -s ./ocd
xPack Open On-Chip Debugger 0.12.0+dev-01312-g18281b0c4-dirty (2023-09-04-22:32)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Error: Debug Adapter has to be specified, see "adapter driver" command
** OpenOCD init failed **
shutdown command invoked
ok apparently the order of parameters matter
$ ./openocd.exe -f ./ocd/interface/stlink.cfg -f ./ocd/target/stm32h7x.cfg -s ./ocd -c "program ./build/MyProject.elf verify reset exit"
xPack Open On-Chip Debugger 0.12.0+dev-01312-g18281b0c4-dirty (2023-09-04-22:32)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 1800 kHz
Info : STLINK V3J14M5 (API v3) VID:PID 0483:3754
Info : Target voltage: 3.007210
Info : [stm32h7x.cpu0] Cortex-M7 r1p1 processor detected
Info : [stm32h7x.cpu0] target has 8 breakpoints, 4 watchpoints
Info : starting gdb server for stm32h7x.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
[stm32h7x.cpu0] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000638 msp: 0x20020000
Info : Unable to match requested speed 4000 kHz, using 3300 kHz
Info : Unable to match requested speed 4000 kHz, using 3300 kHz
** Programming Started **
Info : Device: STM32H74x/75x
Info : flash size probed value 128k
Info : STM32H7 flash has a single bank
Info : Bank (0) size is 128 kb, base address is 0x08000000
Info : Padding image section 1 at 0x0801e408 with 24 bytes (bank write end alignment)
Warn : Adding extra erase range, 0x0801e420 .. 0x0801ffff
** Programming Finished **
** Verify Started **
** Verified OK **
** Resetting Target **
shutdown command invoked
thanks for your help man !!