snippetbashTip
st-flash — Flash binary files to STM32 ARM Cortex microcontrollers. More information: <https://github.com/stlin
Viewed 0 times
commandfilescliflashst-flashstm32binaryarm
Problem
How to use the
st-flash command: Flash binary files to STM32 ARM Cortex microcontrollers. More information: <https://github.com/stlink-org/stlink/blob/testing/doc/man/st-flash.md>.Solution
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 4096Write firmware to device starting from 0x8000000:
st-flash write {{firmware}}.bin 0x8000000Erase firmware from device:
st-flash eraseCode Snippets
Read 4096 bytes from the device starting from 0x8000000
st-flash read {{firmware}}.bin 0x8000000 4096Write firmware to device starting from 0x8000000
st-flash write {{firmware}}.bin 0x8000000Erase firmware from device
st-flash eraseContext
tldr-pages: common/st-flash
Revisions (0)
No revisions yet.