LinuxCommandLibrary

st-util

TLDR

Start GDB server

$ st-util
copy
Custom port
$ st-util -p [4242]
copy
Verbose mode
$ st-util -v
copy
Multi mode
$ st-util -m
copy
Specify serial
$ st-util --serial [serial-number]
copy

SYNOPSIS

st-util [-p port] [-v] [-m] [options]

DESCRIPTION

st-util runs GDB server. It connects ST-Link to GDB.
Remote debugging. GDB protocol.
Connects to STM32. Via ST-Link.
Semihosting support. Printf to debugger.
Standard GDB port. Connect with arm-gdb.

PARAMETERS

-p PORT

GDB server port.
-v
Verbose output.
-m
Multi-target mode.
--serial SN
Device serial.
--semihosting
Enable semihosting.
-n
No reset on connect.

CAVEATS

ST-Link required. One device by default. Port must be free.

HISTORY

st-util is part of stlink, providing a GDB server for debugging STM32 microcontrollers via ST-Link.

SEE ALSO

st-flash(1), st-info(1), gdb(1), openocd(1)

Copied to clipboard