STM32

STM32F103 on Arduino

    • Install Arduino IDE

    • Install Arduino_STM32 on Arduino IDE Contents->Hardware (Reference: https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki/Installation)

    • Install arm-none-eabi-g++ : Run the IDE, and on the Tools menu, select the Boards manager, and install the Arduino Zero from the list of available boards.

    • You must do this step, it installs the arm-none-eabi-g++ toolchain!

ST-LINK V2

    • brew install stlink

  • Reference: http://www.davesblog.com/blog/2012/04/03/using-stm32f4-discovery-with-os-x-plus-built-in-st-link/

  • Reference: http://brewformulas.org/Stlink

  • For Windows: https://developer.mbed.org/teams/ST/wiki/ST-Link-Driver#installation-instructions

STM32 Driver

  • https://sourceforge.net/p/stm32flash/wiki/Home/

  • Install and make and make install PREFIX=/opt

  • Copy to Arduino Hardware STM32Flash

TEST

  • Enjoy to Use Arduino IDE to Upload Script to STM32F103C8t6

Reference Web :

  • http://grauonline.de/wordpress/?page_id=1004

  • http://www.14core.com/setup-installing-arm-stm32fxxx-development-board-on-arduino-ide/

    • Others IDE : http://docs.leaflabs.com/docs.leaflabs.com/index.html#maple-ide-install

    • http://www.wifi4things.com/stm32f103c8t6-blue-pill-board-with-arduino-ide-on-linux/

BootLoader :

    • https://www.espruino.com/Serial+Bootloader

    • https://github.com/rogerclarkmelbourne/STM32duino-bootloader/tree/master/STM32F1/flash

Problem :

    • serial_upload (Can't found stm32flash/stm32flash)

      • Modify serial_upload to find stm32flash/ location

    • in /Users/sankipoon/Desktop/Arduino1.8.1.app/Contents/Java/hardware/Arduino_STM32-master/tools/macosx