mirror of https://github.com/CrimsonTome/tldr.git
commit
fbac2453be
|
@ -0,0 +1,15 @@
|
|||
# st-flash
|
||||
|
||||
> Flash binary files to STM32 ARM Cortex microcontrollers.
|
||||
|
||||
- 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`
|
|
@ -0,0 +1,15 @@
|
|||
# st-info
|
||||
|
||||
> Provides information about connected STLink and STM32 devices.
|
||||
|
||||
- Display amount of program memory available:
|
||||
|
||||
`st-info --flash`
|
||||
|
||||
- Display amount of sram memory available:
|
||||
|
||||
`st-info --sram`
|
||||
|
||||
- Display summarized information of the device:
|
||||
|
||||
`st-info --probe`
|
|
@ -0,0 +1,15 @@
|
|||
# st-util
|
||||
|
||||
> Run GDB (GNU Debugger) server to interact with STM32 ARM Cortex microcontoller.
|
||||
|
||||
- Run GDB server on port 4500:
|
||||
|
||||
`st-util -p {{4500}}`
|
||||
|
||||
- Connect to GDB server:
|
||||
|
||||
`(gdb) target extended-remote {{localhost}}:{{4500}}`
|
||||
|
||||
- Write firmware to device:
|
||||
|
||||
`(gdb) load {{firmware.elf}}`
|
Loading…
Reference in New Issue