Open source ARM Debugger

Moderator: phalanx

Post Reply
Posts: 2
Joined: Mon Feb 16, 2015 9:47 am


Post by ravaz » Tue Nov 27, 2018 1:38 am


I'm trying to use openOCD on NUCLEO-H743ZI ... 743zi.html with the following command:

Code: Select all

openocd.exe -f board/st_nucleo_h743zi.cfg
but I get the following error:

Code: Select all

GNU MCU Eclipse 64-bit Open On-Chip Debugger 0.10.0+dev-00352-gaa6c7e9b (2018-11-27-08:21)
Licensed under GNU GPL v2
For bug reports, read
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1800 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
D:/_app/GNU MCU Eclipse/OpenOCD/0.10.0-10-20181127-0819/bin/..//scripts/target/stm32h7x.cfg:102: Error: invalid command name "stm32h7x.dap"
in procedure 'script'
at file "embedded:startup.tcl", line 60
at file "D:/_app/GNU MCU Eclipse/OpenOCD/0.10.0-10-20181127-0819/bin/..//scripts/board/st_nucleo_h743zi.cfg", line 8
at file "D:/_app/GNU MCU Eclipse/OpenOCD/0.10.0-10-20181127-0819/bin/..//scripts/target/stm32h7x_dual_bank.cfg", line 2
at file "D:/_app/GNU MCU Eclipse/OpenOCD/0.10.0-10-20181127-0819/bin/..//scripts/target/stm32h7x.cfg", line 102

Any hint on how to fix it?


Posts: 4
Joined: Mon Sep 24, 2018 2:24 pm


Post by borneoa » Tue Nov 27, 2018 2:08 am

Hi Ravaz,
you are trying to use a quite old OpenOCD binary with a new configuration script that use a new command.
Your OpenOCD is:
> GNU MCU Eclipse 64-bit Open On-Chip Debugger 0.10.0+dev-00352-gaa6c7e9b (2018-11-27-08:21)
I cannot find this version in the official git of OpenOCD, no idea where it comes from. Nevertheless, the number 00352 means 352 commits after the tag "v0.10.0". I expect most of these commits coming from official OpenOCD, few more from GNU MCU Eclipse.
The new commands needed are introduced at v0.10.0-367-g2231da8ec, that is 367 commits after the tag. Your version does not include it.
Today the master branch is far above, at 585 commits after the tag.
I suggest you to update to a never version of OpenOCD.


Post Reply