PlatformIO Community

Memory analysis with pio debug cli and STLink

I just got an STLink debugger which I use with my STM32F103 board. It’s a game changer for me to have my first embedded debugger (have been using debuggers on desktop platforms in high level languages all my life). So I am using pio debug with the gdb interface. It says in the Pio debug overview that you can view memory in VSCode. How can I do that with the gdb interface? I am using vim/cli for all my development so don’t want to have to install VSCode for this if I don’t have to.

Just start

pio debug --interface gdb -x .pioinit

There is a good article https://bob.cs.sonoma.edu/IntroCompOrg-RPi/sec-gdb1.html about GDB commands.

1 Like