1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-07 23:55:58 +02:00
tldr/pages/common/st-util.md

17 lines
366 B
Markdown
Raw Normal View History

2016-09-17 23:09:04 -05:00
# st-util
2016-09-18 13:25:47 -05:00
> Run GDB (GNU Debugger) server to interact with STM32 ARM Cortex microcontoller.
> More information: <https://github.com/texane/stlink>.
2016-09-17 23:09:04 -05:00
- Run GDB server on port 4500:
`st-util {{[-p|--listen_port]}} {{4500}}`
2016-09-17 23:09:04 -05:00
2025-07-21 22:17:44 +03:00
- Connect to GDB server within `gdb`:
2016-09-17 23:09:04 -05:00
2025-07-21 22:17:44 +03:00
`target extended-remote {{localhost}}:{{4500}}`
2016-09-17 23:09:04 -05:00
- Write firmware to device:
2025-07-21 22:17:44 +03:00
`load {{firmware.elf}}`