Difference between revisions of "STM32 Flash"

From ElectroDragon Wiki
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
https://w2.electrodragon.com/gollum/search?q=stm32-dat.md
== Programmer ==
==== ST-LINK + ST Utility ====
* [[ST-Link]]
 
==== [[DAPLink]] ====
* Moved to this page [[DAPLink]]
 
==== Jlink, JTAG ====
* [[JLink]]
 
== Embedded bootloader ==
The embedded bootloader mode is used to reprogram the Flash memory using one of the following serial interfaces:
* SWD Default
* USART1 (PA9/PA10)
* USART3 (PB10/11 and PC10/11)
* CAN2 (PB5/13)
* USB OTG FS (PA11/12) in Device mode (DFU: device firmware upgrade).
 
 
=== SWD ===
=== Hardware Interface ===
[[File:Stm32_serial_wiring_02.jpg|400px]]
 
=== DFU USB OTG ===
* Listed supported device in ST documents [https://www.st.com/content/ccc/resource/technical/document/application_note/6a/17/92/02/58/98/45/0c/CD00264379.pdf/files/CD00264379.pdf/jcr:content/translations/en.CD00264379.pdf AN3156]
[[File:DFU.gif|thumbnail|right]]
* Download [http://www.st.com/en/development-tools/stsw-stm32080.html DfuSe USB device firmware upgrade (DFU) software]
* Install the drive in installation folder -C:\Program Files (x86)\STMicroelectronics\Software\DfuSe v3.0.5\Bin\Driver or here [[File:STM-Bootloader-Driver.zip|STM32 Bootloader Driver]]
* Testing firmware for [[:File:Can-usb.zip|USB-CAN here]].
* Open the DFU tool to upload firmware to internal flash, see left animation.
 
=== ISP USART ===
* BOOT0 should be pull to high, foce chip into system memory
* Flash loader demostrator from official ST = Flasher
* https://www.st.com/en/development-tools/flasher-stm32.html
<gallery>
File:Flash_demonstrator_01.png | Use guide 01
File:Flash_demonstrator_02.png | Select memory size
File:Flash_demonstrator_03.png | upload code
</gallery>
 
 
== Debug ==
* If SWD Serial-Wire is not enable, add reset line to force enter into debug mode
 
[[category: STM32 SDK]]

Latest revision as of 17:40, 5 July 2024