2025-03-14 21:59:59 -06:00
|
|
|
# st-flash
|
|
|
|
|
|
|
|
|
|
> Flash binary files to STM32 ARM Cortex microcontrollers.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://manned.org/st-flash>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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`
|