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
Thankfully the Adafruit board support is now supported directly from STM32duino so you can simply install it:
From the File menu select Preferences |
|
Find the Additional Board Manager URLs text box. If it's empty add the text
or, if its not empty, add a comma at the end of the current text, and then add the line above |
|
From the Tools menu, go down to Board submenu and select Board Manager... |
|
Search for STM32 and click Install - make sure you have the latest version, at least 1.8.0 selected and installed! |
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 STM32CubeProgrammer (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 |
There's work in progress to have STM32 auto-reload, hopefully that will make it into a release soon!
STM32duino Notes
- Hardware Serial UART is on Serial3 not Serial1 as is usually called
- Yes NeoPixel library has support for STM32F4!
- The SDIO SD card is supported by this library