Error when uploading a program to a STM32G0B1RE

Hello! I got this error when I try to flash my STM32 board using make flash.

openocd -f board/st_nucleo_g0.cfg -c “program Build/temp.hex verify reset” -c shutdown
Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
embedded:startup.tcl:26: Error: Can’t find board/st_nucleo_g0.cfg
in procedure ‘script’
at file “embedded:startup.tcl”, line 26
make: *** [makefile:96: flash] Error 1

So this doesn’t use PlatformIO at all, which is what this forum is about? Huh?

In any case, your OpenOCD version is probably too old. st_nucleo_g0.cfg does exist in the latest version. You can e.g. download a precompiled binary at Releases · xpack-dev-tools/openocd-xpack · GitHub.