GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ST-FLASH(1) STLINK ST-FLASH(1)

st-flash - Flash binary files to STM32 device

st-flash [OPTIONS] {read|write|erase} [FILE] <ADDR> <SIZE>

Flash binary files to arbitrary sections of memory, or read arbitrary addresses of memory out to a binary file.
You can use this instead of st-util(1) if you prefer, but remember to use the .bin image, rather than the .elf file.
Use hexadecimal format for the ADDR and SIZE.

write FILE ADDR
Write firmware FILE to device starting from ADDR
read FILE ADDR SIZE
Read firmware from device starting from ADDR up to SIZE bytes to FILE
erase
Perform a mass erasing of the device firmware

--version
Print version information
--debug
TODO
--reset
TODO
--serial iSerial
TODO
--flash=size
Override the device's normal flash size, where size is the flash size in bytes. It can be specified in decimal, octal or hexadecimal. The size argument can optionally be followed by 'k' for KB or 'm' for MB. Examples --flash=128k or --flash=0x080k.

Flash firmware.bin to device
$ st-flash write firmware.bin 0x8000000
    
Read firmware from device (4096 bytes)
$ st-flash read firmware.bin 0x8000000 4096
    
Erase firmware from device
$ st-flash erase
    

st-util(1), st-info(1), st-term(1)

This work is copyrighted. Stlink contributors. See LICENSE file in the stlink source distribution.
Sep 2016 Open Source STMicroelectronics Stlink Tools

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.