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