Arduino IDE Setup

The first thing you will need to do is to download the latest release of the Arduino IDE. You will need to be using version 1.8 or higher for this guide

At this time, the Adafruit board support is not released from STM32duino so you will need to manually install it

  • In your Arduino Sketchbook folder, create a new folder named hardware
  • In your Sketchbook/hardware folder, create a new folder named STM32

Within Sketchbook/hardware/STM32 perform a
git clone

So that your filesystem looks like this:

Quit and restart the Arduino IDE

From the Tools menu, select Generic STM32F4

Then select Board part number -> Adafruit Feather STM32F405

Under USB Support select CDC supercedes USART so that Serial points to the USB port not the hardware serial

Finally select STM32CodeProgrammer (DFU) as the upload method

These are your Tool menu selections to verify!

Activate the Bootloader

At this time, you must manually put the board into bootloader mode every time you want to upload

Do that by connecting the B0 pin to 3.3V and clicking reset

STM32CodeProgrammer will run the code immediately after DFU, so you can connect a wire on a breadboard between B0 and 3.3V and keep it connected. When you are about to upload, click the reset button. After upload, your code will be running automatically.


Once you are bootloader mode, click Upload to compile and upload your sketch

STM32duino Notes

This guide was first published on Nov 05, 2019. It was last updated on Nov 05, 2019. This page (Arduino IDE Setup) was last updated on Nov 17, 2019.