st-flash
Flash binary files to STM32 ARM Cortex microcontrollers. More information: https://github.com/texane/stlink.
-
Read 4096 bytes from the device starting from 0x8000000:
st-flash read {{firmware}}.bin {{0x8000000}} {{4096}}
-
Write firmware to device starting from 0x8000000:
st-flash write {{firmware}}.bin {{0x8000000}}
-
Erase firmware from device:
st-flash erase
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.