st-util(1)
π st-util β the STM32 GDB server bestie π
okay so real quick, this is st-util from the stlink manual (section 1), and bestie, if you're out here trying to talk to an STM32 chip, this is literally your girl. no cap. π¦
β¨ NAME β¨
st-util β run a GDB server so you can vibe (technically: interact) with an STM32 device. π₯
πΈ SYNOPSIS πΈ
st-util [<ARGS>...]
π DESCRIPTION π
So basically you're starting up a GDB server to hang out with an STM32 device. Under the hood it runs the main binary of the local package, which lives at src/main.rs. (yes bestie, Rust. iconic behavior. π¦)
If you don't tell it which port to use with the βlisten_port option, it's gonna default to port 4242 β that's just the vibe it defaults to, periodt.
And Stlink version 2 is what you get by default, unless you specifically pass the βstlinkv1 option. that's it, that's the deal. π«
π OPTIONS π
-h,--helpβ prints this message. the classic. the beloved. your bestie when you forget everything. π«Ά--versionβ prints version information. β¨-v XX,--verbose=XXβ pick a specific verbosity level, from0all the way up to99. yeah, ninety-nine. go off. π’-v,--verboseβ just generally verbose logging, no specific number needed. she'll be chatty. π¬-s X,--stlink_version=Xβ choose which version of stlink to use. defaults to2. π-1,--stlinkv1β force stlink version 1. old school, respect. π-p 4242,--listen_port=1234β set the gdb server listen port. default port:4242. π-m,--multiβ puts the gdb server into extended mode, andst-utilwill keep listening for connections even after you disconnect. she's not going anywhere. π-n,--no-resetβ do not reset the board on connection. π«--semihostingβ enable ARM Semihosting output onstdout. β¨
π§ EXAMPLES π§
Run the GDB server on port 4500 and connect to it:
$ st-util -p 4500
$ gdb
(gdb) target extended-remote localhost:4500
see? three lines. ate. π₯
π SEE ALSO π
π COPYRIGHT π
This work is copyrighted. Stlink contributors. See the LICENSE file in the stlink source distribution.
and that's the whole page, bestie! this one came from the Open Source STMicroelectronics S... crew, dated Feb 2018, filed under st-util(1) in the stlink manual. go flash something cute. π
β¨
π¦ where this page comes from
- alpine 3.24: stlink-doc 1.8.0-r1 Β· MIT
- arch rolling: stlink 1.9.0-1 Β· BSD-3-Clause
- debian trixie: stlink-tools 1.8.0-1.1 Β· BSD-3-Clause
- fedora 43: stlink 1.8.0-3.fc41 Β· BSD-3-Clause
- fedora 43: stlink 1.8.0-3.fc41 Β· BSD-3-Clause
- fedora 44: stlink 1.8.0-3.fc41 Β· BSD-3-Clause
- fedora 44: stlink 1.8.0-3.fc41 Β· BSD-3-Clause
- nixos 26.05: stlink 1.8.0
- nixpkgs unstable: stlink 1.8.0
- opensuse-leap 16.0: stlink 1.8.0-bp160.1.12 Β· BSD-3-Clause
- opensuse-leap 16.0: stlink 1.8.0-bp160.1.12 Β· BSD-3-Clause
- opensuse-leap 16.0: stlink 1.8.0-bp160.1.12 Β· BSD-3-Clause
- opensuse-leap 16.0: stlink 1.8.0-bp160.1.12 Β· BSD-3-Clause
- ubuntu noble: stlink-tools 1.8.0-1build2 Β· BSD-3-Clause
- ubuntu questing: stlink-tools 1.8.0-1.1
- ubuntu resolute: stlink-tools 1.8.0-1.1build1 Β· BSD-3-Clause
- ubuntu stonking: stlink-tools 1.8.0-1.1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms