blue-pill
Toto je starší verze dokumentu!
Obsah
Blue Pill
Hidden flash ram?
ST-LINK programátor
Programátor pro STM32.
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.
- 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 : Old ST-LINK firmware/ST-LINK already used ST-LINK Firmware version : V2J17S4 (Need Update) Old ST-LINK firmware detected! Please upgrade it from ST-LINK->'Firmware update' menu. Connected via SWD. 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 702ms. Programming Complete. MCU Reset. Could not run application while the read out protection is activated. A power cycle is needed.
Arduino IDE
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
blue-pill.1495723516.txt.bz2 · Poslední úprava: 2023/12/26 19:13 (upraveno mimo DokuWiki)