STM32dunio is a project designed to allow the use of the Arduino IDE to program STM32 microcontrollers. The following is the procedure I used to install and configure STM32dunio.
NOTE: These steps are FOR WINDOWS AND SEEM TO BE accurate as of June 29, 2015 using for the Arduino IDE v1.6.9 and SAM Board EXTENSION v1.6.8. for more information, please see the official stm32dunio instructions at roger clark’s github wiki page.
INSTALL THE ARDUINO IDE
- Download the Arduino IDE from the official site. My recommendation is to use the latest “stable” version in an attempt to avoid any unforeseen compatibility problems. (www.arduino.cc)
- Double-click on the downloaded Arduino setup file to begin the installation. (I just used all of the default options when installing.)
INSTALL THE ARDUINO SAM BOARD PLUGIN
- Start the Arduino IDE application.
- Open up the Boards Manager windows by navigating to the Tools menu, then Board: “??????” and Boards Manager…
- Under the Boards Manager window, install the “Arduino SAM Boards (32-bits ARM Cortex-M3) by Arduino” extension. (NOTE: This extension is large so, depending on your Internet connection speed, this can take a number minutes.)
- When the extension’s installation is complete, close the Boards Manager window and exit the Arduino IDE.
INSTALLING THE STM32DUINO FILES
- Download the STM32dunio files from Roger Clark’s GitHub repository.
- Unpack the newly downloaded “Arduino_STM32-master.zip” file. (All versions of Windows since XP should be able to natively extract “zip” files. If you require a third party application for this process, may I suggest the open-source program 7-Zip.)
- Copy the recently extracted “Arduino_STM32-master” folder into your “My Documents/Arduino/hardware” folder. (When I installed the Arduino IDE, the “hardware” folder was not automatically created so I had to make one.)
This completes the installation of the STM32dunio files. When the Arduino IDE is restarted you should now have STM32 boards listed under the Tools / Board menu.