Debugging STM32 with GDB

So I’ve been using PlatformioIDE for a while now, and it’s been great! But I wonder: is there an easy way of initiating a debug session in GDB?

For now I’m using OpenOCD (started in a separate command prompt), and then starting arm-none-eabi-gdb (in yet another terminal).

I’ve found this example about using GDB to upload code, is there a way of using it to also debug code directly from the IDE’s terminal, without the need to load many separate windows and/or third party gdb servers like OpenOCD?

We are working on the debugging feature for the whole PlatformIO ecosystem. Please follow us on Twitter @PlatformIO_Org.

1 Like