Difference between revisions of "STM32 PROG"

From ElectroDragon
Jump to navigation Jump to search
(ST-LINK)
 
Line 11: Line 11:
 
File:ST-LINK_upgrade_firmware.png | upgrade firmware of st-link
 
File:ST-LINK_upgrade_firmware.png | upgrade firmware of st-link
 
</gallery>
 
</gallery>
 
+
== USB DFU ==
 +
* Short connect Boot0 + 3V3 to re-enter into USB DFU mode
 +
* use STM32CubeProgrammer upload hex or DFU file.
  
 
== SWD ==
 
== SWD ==

Latest revision as of 08:33, 25 March 2020

Programmer

STM32cubeprog 2.2.1

  • Require Java
  • Support DFU


ST-LINK

Upgrade firmware

  • If error st-link is not DFU mode -> connect ST-link, do not operate anythings, click upgrade firwmare directly

USB DFU

  • Short connect Boot0 + 3V3 to re-enter into USB DFU mode
  • use STM32CubeProgrammer upload hex or DFU file.

SWD

  • If SWD prog port block, should use "under reset" option, and hold down reset, then press prog mode, then release reset

Guide