1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 00:17:56 +01:00
tldr/pages/common/st-flash.md

17 lines
395 B
Markdown
Raw Normal View History

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