Setting up STM32
Follow the steps bellow to setup programming STM32 microcontrollers with the Arduino IDE (1) or Visual Studio and Platform IO (2).
Prepare
STM32CubeProgrammer is used by Arduino to compile for STM32 Installation on MacOS needs to be done from the command line
Make sure the device is in BOOT mode when uploading with Arduino IDE / Platform IO (see pinout diagram)
The RESET on the STM32 micrcontroller needs to be pressed after switching between BOOT and RUN mode in order to read the change
Option 1: Arduino IDE
The port does not have to be specified (having one specified should not cause any problems either).
Press the RESET button when the device is not recognized by the computer
Option 2: Visual Studio & Platform IO
Press the RESET button when the device is not recognized by the computer
Last updated