mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-28 11:22:08 +03:00
commit
fbac2453be
15
pages/common/st-flash.md
Normal file
15
pages/common/st-flash.md
Normal file
@ -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`
|
15
pages/common/st-info.md
Normal file
15
pages/common/st-info.md
Normal file
@ -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`
|
15
pages/common/st-util.md
Normal file
15
pages/common/st-util.md
Normal file
@ -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
Block a user