tldr/pages/common/st-util.md

17 lines
345 B
Markdown
Raw Normal View History

2016-09-18 07:09:04 +03:00
# st-util
2016-09-18 21:25:47 +03:00
> Run GDB (GNU Debugger) server to interact with STM32 ARM Cortex microcontoller.
> More information: <https://github.com/texane/stlink>.
2016-09-18 07:09:04 +03:00
- Run GDB server on port 4500:
2016-09-19 01:36:50 +03:00
`st-util -p {{4500}}`
2016-09-18 07:09:04 +03:00
- Connect to GDB server:
2016-09-20 21:27:56 +03:00
`(gdb) target extended-remote {{localhost}}:{{4500}}`
2016-09-18 07:09:04 +03:00
- Write firmware to device:
`(gdb) load {{firmware.elf}}`