Using a debugger with Nucleo G071RB

Debugging works with the final version, thanks!

Is there any way to make it work without separately starting the GDB server?

Still getting an occasional:
Failed to get Stack Trace: Selected thread is running. (from stack-list-frames --thread 1 0 20)
Unable to get thread information: Cannot execute this command while the target is running. Use the "interrupt" command to stop the target and then try again. (from thread-info 1)
but that’s probably a topic for another thread.

Uh, with which exact OpenOCD command? Does it also work without a -c "reset_config... command?

Yes, works with just the openocd -f interface\stlink.cfg -f target\stm32g0x.cfg

Weird when it didn’t before :open_mouth:

Btu that should mean no extra configuration should be needed.

Can you test with just the platformio.ini

platform =
board = nucleo_g071rb
framework = arduino


It sure does :sweat_smile:
I guess we should have started with the upgrade. The platform = is the other factor.

Sorry as one final test, it’s still using the latest OpenOCD version.

Please delete the folder C:\Users\<user>\.platformio\packages\tool-openocd again and start debugging again. PlatformIO will redownload / unpack its (older) OpenOCD version again. Does it still work? Otherwise the STM32 platform also needs a OpenOCD upgrade.

Works the same with PlatformIO’s 0.10.0+dev-00378-ge5be992df and the latest 0.11.0-00155-ge392e485e.

Thanks, PR for board manifest update is in the queue at Fix onboard STLink uploading and debugging for Nucleo-Gxxx series by maxgerhardt · Pull Request #509 · platformio/platform-ststm32 · GitHub.

1 Like