STM32 OFF-PROG

From ElectroDragon Wiki
Revision as of 18:35, 4 August 2022 by Chao (talk | contribs) (→‎= Working Mode)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Software

Preloaded offline firmware, and relevant flash methods, ready to use

For offline flashing:

  • Power board by powerbank or other USB power supply
  • Connect target via SWD four pins: SWD CLK 3V3 GND
  • Target will be automatically detected and displayed "connected"
  • Select correct flash methods, *.v file
  • select correct firmware bin file
  • and upload by click "start"
  • target will be auto reset


Folders

  • IVS - devices configuration folders
  • KEY - flash key encryption folders
  • Root-folder - put your flash file bin here, use hex2bin convert beforehand

Buttons

  • PB1 = ON -> mode select online + menu select
  • PB2 = OFF -> mode select offline + menu next

If you want to enter into online mode, hold down PB1 and power up via USB
In the menu you can choose item via PB1 button, or switch to next one via PB2 button


Re-flash firmware only

  • Flash bootloader, BL by st-link
  • Drag and upgrade either ONLINE or OFFLINE firmware into emulated DAP disk


For offline firmware

  • upload "target flash methods" for different kinds of target into emulated DAP disk


Mode seletct:

  • hold down button ON or OFF and then power up to enter into relevant mode



Flash Methods Options

Header text Header text Header text
STM32F0XX ALL F0XX
STM32F10X 512K or less F10X_MD
STM32F10X 512K or more F10X_HD
STM32F3XX ROM 256K F3XX_MD
STM32F3XX ROM 512K F3XX_HD
STM32F4XX 512K or less F4XX_LD
STM32F4XX 1024K F4XX_MD
STM32F4XX 2048K F4XX_HD


Pin header

  • Front top-bottom: 3V3 DIO CLK GND RESET
  • Back Top-bottom: 3V3 TXD RXD GND +5V
  • Button only use side ON and OFF button, reset button is not necessary to use

Working Mode

  • Online Mode: CMSIS-DAP + serial + USB Disk Mode
  • Offline Mode: Offline Batch programming mode

Demo