mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 10:57:09 +00:00
Update cheatsheets
This commit is contained in:
21
st-util
Normal file
21
st-util
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# st-util
|
||||
|
||||
> Run GDB (GNU Debugger) server to interact with STM32 ARM Cortex microcontoller.
|
||||
> More information: <https://github.com/texane/stlink>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user