2025-03-14 21:59:59 -06:00
|
|
|
# st-flash
|
|
|
|
|
|
|
|
|
|
> Flash binary files to STM32 ARM Cortex microcontrollers.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://github.com/stlink-org/stlink/blob/testing/doc/man/st-flash.md>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Read 4096 bytes from the device starting from 0x8000000:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`st-flash read {{firmware}}.bin 0x8000000 4096`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Write firmware to device starting from 0x8000000:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`st-flash write {{firmware}}.bin 0x8000000`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Erase firmware from device:
|
|
|
|
|
|
|
|
|
|
`st-flash erase`
|