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)

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:

http://www.stm32duino.com/index.php

https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki