2016-09-18 05:04:12 +01:00
|
|
|
# st-flash
|
|
|
|
|
|
|
|
> Flash binary files to STM32 ARM Cortex microcontrollers.
|
2019-05-23 11:56:50 +01:00
|
|
|
> More information: <https://github.com/texane/stlink>.
|
2016-09-18 05:04:12 +01:00
|
|
|
|
2016-09-18 15:22:00 +01:00
|
|
|
- Read 4096 bytes from the device starting from 0x8000000:
|
2016-09-18 05:04:12 +01:00
|
|
|
|
2016-09-18 15:22:00 +01:00
|
|
|
`st-flash read {{firmware}}.bin {{0x8000000}} {{4096}}`
|
2016-09-18 05:04:12 +01:00
|
|
|
|
2016-09-18 15:22:00 +01:00
|
|
|
- Write firmware to device starting from 0x8000000:
|
2016-09-18 05:04:12 +01:00
|
|
|
|
2016-09-18 15:22:00 +01:00
|
|
|
`st-flash write {{firmware}}.bin {{0x8000000}}`
|
2016-09-18 05:04:12 +01:00
|
|
|
|
|
|
|
- Erase firmware from device:
|
|
|
|
|
|
|
|
`st-flash erase`
|