Arduino IDE setup
First of all lets install Arduino IDE 2.x.x. Download and install version for your OS.
STM32 are usually programmed via the SWD interface, which is not native to the Arduino IDE. To solve this problem, we will use STM32CubeProgrammer tool. Please download and install it. Keep default settings. Allow drivers install.
Now we're ready to configure Arduino IDE. STM32duino is a set of libraries providing STM32 support in Arduino. To install it do the following: Open Arduino IDE, click “File”, then “Preferences” and populate the “Additional Boards Manager URLs” with the following line:
https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
Press OK.


In the main window click "Tools"->"Board"->"Boards manager". In the search field type "STM32". The "STM32 MCU based boards" package should appear. Click "Install". Close the Boards manager window.
Last updated