- 將 Arduino_STM32-master.zip 解壓縮,修改資料夾名為STM32
- 將資料夾STM32複製複製arduino-1.8.0-windows\hardware\ 下
- 開發板:"Generic STM32F103C series"
- Variant:"STM32F103C8 (20k RAM, 64k Flash)"
- Upload method:"Serial"
- 序列埠:"<the COM port of your USB-to-serial adapter>"
- 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!
- Path : 工具 > 開發板 > 開發板管理員
- 搜尋 Arduino zero
- 安裝 Arduino SAMD Boards(32-bits ARM Cortex-M0+) 版本1.6.11
- 透過3.3V Level UART 燒錄 STM32F1
- Serial-to-USB module RX => PA09
- Serial-to-USB module TX => PA10
- Boot mode Select (set BooT1 to 0)
- Flash : set ‘BOOT0‘ to 1 (will boot from system memory which contains an UART to flash uploader).
- Run : set ‘BOOT0‘ to 0 (will boot from program memory).
- 將Boot0 設定為 1, 將Boot1設定為 0
- 按下Reset鍵
- Arduino 開始燒錄,如下圖
- 將Boot0 設定為 0