2025-03-14 21:59:59 -06:00
|
|
|
# st-util
|
|
|
|
|
|
|
|
|
|
> Run GDB (GNU Debugger) server to interact with STM32 ARM Cortex microcontoller.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://github.com/stlink-org/stlink/blob/testing/doc/man/st-util.md>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Run GDB server on port 4500:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`st-util {{[-p|--listen_port]}} {{4500}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- [Interactive] Connect to GDB server within `gdb`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`target extended-remote {{localhost}}:{{4500}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- [Interactive] Write firmware to device:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`load {{firmware.elf}}`
|