An error occurred while uploading the sketch This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. Please ensure the device is correctly connected. Global variables use 1044 bytes (1%) of dynamic memory, leaving 97260 bytes for local variables. I followed them, got the sketch to compile, but I get the error:Īrduino: 1.8.5 (Windows 10), Board: "Nucleo-64, Nucleo F401RE, Mass Storage, Generic Serial, None, Smallest (-Os default)" Archiving built core (caching) in: C:\Users\bjfur\AppData\Local\Temp\arduino_cache_286105\core\core_STM32_stm32_Nucleo_64_pnum_NUCLEO_F401RE,upload_method_MassStorage,xserial_generic,usb_none,opt_osstd_d724efeaa56f34424fff8f97231228d4.a Sketch uses 11064 bytes (2%) of program storage space. The project created throughout this guide can be used as a boilerplate for the next projects based on the STM32 Nucleo-F401RE board.Thank you for the clear, complete instructions. 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. Command Palette View: Command Palette > PlatformIO: Upload.Upload option on the Project Tasks menu. The following options can be used to upload the firmware to the board: If you see errors, please check your typing carefully and try again. If everything went well, the successful result should be printed in the terminal window:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |