====== Blue Pill ====== * http://bluepill.cz * http://wiki.stm32duino.com/index.php?title=Blue_Pill * http://wiki.stm32duino.com/index.php?title=Burning_the_bootloader Hidden flash ram? * http://stm32duino.com/viewtopic.php?f=15&t=261&p=1872&hilit=STM32F103C8T6+128#p1872 * http://stm32duino.com/viewtopic.php?f=3&t=110&p=735&hilit=STM32F103C8T6+128#p735 ===== ST-LINK programátor ===== ST-LINK v2 programátor pro STM32. **AliExpress:** https://www.aliexpress.com/item/Hot-Sale-1PCS-ST-LINK-Stlink-ST-Link-V2-Mini-STM8-STM32-Simulator-Download-Programmer-Programming/32343514985.html **Utility:** http://www.st.com/content/st_com/en/products/embedded-software/development-tool-software/stsw-link004.html\\ **Firmware upgrade:**http://www.st.com/en/embedded-software/stsw-link007.html\\ **Driver:** http://www.st.com/content/st_com/en/products/embedded-software/development-tool-software/stsw-link009.html ===== STM32duino bootloader ===== Flash bootloader přes ST-LINK na Windows. - stáhnout bootloader https://github.com/rogerclarkmelbourne/STM32duino-bootloader/blob/master/STM32F1/binaries/generic_boot20_pc13.bin - přesunout a přejmenovat do **C:\Users\**//user//**\Documents\Arduino\hardware\Arduino_STM32\tools\win\bootl.bin** - v příkazovém řádku spustit **stlink\ST-LINK_CLI.exe -c SWD -P bootl.bin 0x8000000 -Rst -Run** C:\...s\Arduino\hardware\Arduino_STM32\tools\win>stlink\ST-LINK_CLI.exe -c SWD -P bootl.bin 0x800000 STM32 ST-LINK CLI v2.1.0 STM32 ST-LINK Command Line Interface ST-LINK SN : 57FF6E065077545159291587 ST-LINK Firmware version : V2J28S7 Connected via SWD. SWD Frequency = 1800K. Connection mode : Normal. Device ID:0x410 Device flash Size : 64 Kbytes Device family :STM32F10xx Medium-density Loading file... Flash Programming: File : bootl.bin Address : 0x08000000 Flash memory programming... ██████████████████████████████████████████████████ 100% Flash memory programmed in 0s and 904ms. Programming Complete. MCU Reset. Application started. ===== Arduino IDE ===== * [[Instalace a příprava Arduino IDE pro STM32]] ==== Nastavení ST-LINK v Arduino IDE ==== Spustit Arduino IDE a nastavit následující. * Menu: **Nástroje** -> **Vývojová deska:** * vybrat **Generic STM32F103C series** * Menu: **Nástroje** -> **Variant:** * vybrat **STM32F103CB (20k RAM, 128k Flash)** * Menu: **Nástroje** -> **Upload method:** * vybrat **STLink**