Stm32 Serial Flash Loader
Open source flash program for the STM32 ARM processors using the ST serial bootloader over UART or I2C - ARMinARM/stm32flash. What are the options available with the STM32 Bootloader 2. How to connect the UART to use as a BootLoader. STM32 UART BootLoader HowTo Web learning. STM32 ARM Microcontroller Bootloaders.
[2015-12] upstream moved to: http://sourceforge.net/p/stm32flash/code/ci/master/tree/ You'll probably want to use that, as this version is outdated.
Open source flash program for the STM32 ARM processors using the ST serial bootloader over UART or I2C
stm32flash 0.4 was released 2014-10-04 and is available at https://releases.stm32flash.googlecode.com/git/stm32flash-0.4.tar.gz
The 0.4 version is the work of Antonio Borneo and includes support for programming over I2C. See the included I2C.txt for more information. The code has been refactored to make it easier to add other transports.
Features
- UART and I2C transports supported
- device identification
- write to flash/ram
- read from flash/ram
- auto-detect Intel HEX or raw binary input format with option to force binary
- flash from binary file
- save flash to binary file
- verify & retry up to N times on failed writes
- start execution at specified address
- software reset the device when finished if -R is specified
- resume already initialized connection (for when reset fails, UART only)
- GPIO signalling to enter bootloader mode (hardware dependent)
Usage
See the included manual page for up-to-date, complete usage instructions.
Examples
Get device information:
Write with verify and then start execution:
Read flash to file:
Start execution:
Stm32 Flash Loader Tool
Authors
Stm32 Bootloader
stm32flash was originally written by Geoffrey McRae and is since 2012 maintained by Tormod Volden. See the git log for the many other contributors.