Using a debugger with Nucleo G071RB

Hm…

As one last effort before I declare this as “bug in even latest openocd, needs external review”, we can maybe test if reset methods make absolutely no difference.

Add the bottom of the platformio.ini

debug_tool = custom
debug_server = 
   $PROJECT_PACKAGES_DIR\tool-openocd\bin\openocd
   -f
   interface\stlink-dap.cfg
   -f
   target\stm32g0x.cfg
   -c
   "reset_config none separate"
debug_port = localhost:3333

(docs), While trying all values for reset_config from STM32 + VS Code + mbed upload issue: Error: libusb_open() failed with LIBUSB_ERROR_ACCESS Error: open failed - #12 by maxgerhardt.

If all of them equally do not work, it has no influence.

Sadly I do not have that Nucleo to counter-check, too…

EDIT Fixed wrong env variable.