PlatformIO Community

How to use platform to debug stm32f103


#1

I have used platform to compile stm32f103 program in SPL frameworks,and it show I have uploaded successfully with JLINK,but it does not run to main function ,I think there are something wrong where i configure the debug,I want to know how to configure the debug,and use what tools to debug,GDB?


#2


#3

Probably a dumb question/answer ('cause I don’t have any debuggers that work with PlatformIO, so havn’t used it)… did you go into the debug section of VSCode?

image


#4

Try F5 in VSCode. It works for me with my STM32F4DISCOVERY. Debugger starts and pauses on temporary breakpoint, typically on first statement in main()