This guide showed how to start developing for STM32 microcontrollers from within Visual Studio Code and the PlatformIO ecosystem. The initialization of a debug session will take some time and when the first line after the main function is highlighted the project is ready for debugging:ĭuring a debug session it’s possible to step through the code using control buttons, set breakpoints, see peripheral registers, and add variables to the Watch window: To start a debugging session you can use the Start Debugging option in the PlatformIO Quick Access menu, Debug: Start debugging from the top menu, or the hotkey button F5: PlatformIO offers the easiest way to debug your applications. > PlatformIO: UploadĪfter successful uploading, the green LED2 should start blinking.
0 Comments
Leave a Reply. |