Arduino IDE for STM32103 board
Arduino IDE for STM32F103C Minimum System Development Board
Installation Instructions for Windows
These instructions are for using the STM32F103C board with a USB-Serial adapter connected to UART1 on the device.
(PA9 = Tx and PA10 = Rx)
Download and install the V1.6.5 version of the Arduino IDE from :
http://arduino.cc/download.php?f=/arduino-1.6.5-r5-windows.exe
Run the IDE, and on the Tools menu, select the Boards manager,
and install the Arduino Due from the list of available boards.
Exit the Arduino IDE when this is complete (takes a while…)
Download zip file containing the STM32 files from
https://github.com/rogerclarkmelbourne/Arduino_STM32/archive/master.zip
Unzip to create the Arduino_STM32 folder
(actually it will be called “Arduino_STM32-master” you can rename it if you like)
Copy this folder inside the \hardware folder in the Arduino install directory.
(this is the folder where the Arduino 1.6.5 software was installed in step#1)
Your install location will probably be different from mine but thecontents of the folder shouls look like this:
(*\hardware is the 4th folder from the top put the Arduino_STM32-master folder inside that)
Re-Start the Arduino IDE and select Tools->Board ->Generic STM32F103C series
Select Tools -> Variant -> STM32F103C8 (20k RAM, 64k Flash)
Select Tools -> Upload Method -> Serial
Select Tools -> Port = {the COM port reported in device manager when you plug in the USB-Serial adapter)
These boards have 2 jumpers on them next to the reset button. To upload code using the factory installed
Serial bootloader you need the move the one closest to the board edge to the “1” position. (see red arrow)
Inside the newly installed \Hardware\Arduino_STM32-master folder is an “examples” folder.
open the Blink example found in \examples\Digital\Blink.
Modify Blink.ino and change PB1 to PC13 (The on-Board LED is connected to pin PC13)
Click the Verify to compile the program. Hopefully you’ll get no errors, if you do re-check the
Board and Variant selections.
With the jumpers set as explained above, reset the board and click the Upload button.
The program will re-compile and then you see a bunch of “Wrote address 0x800…” messages fly by
ending with “Starting execution at address 0x8000000… done.”
The LED should now be Blinking!!!!!!
Interesting Links: