mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
513 B
Plaintext
22 lines
513 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# st-flash
|
|
|
|
> Flash binary files to STM32 ARM Cortex microcontrollers.
|
|
> More information: <https://github.com/stlink-org/stlink/blob/testing/doc/man/st-flash.md>.
|
|
|
|
- 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`
|