st-util(1) | stlink | st-util(1) |
st-util - Run GDB server to interact with STM32 device
st-util [<ARGS>...]
Start a GDB server to interact with a STM32 device Run the main binary of the local package (src/main.rs).
If a port number is not specified using the –listen_port option, the default 4242 port will be used.
Stlink version 2 is used by default unless the option –stlinkv1 is given.
The STLinkV2 device to use can be specified in the environment variable STLINK_DEVICE on the format :.
Run GDB server on port 4500 and connect to it
$ st-util -p 4500 $ gdb (gdb) target extended-remote localhost:4500
This work is copyrighted. Stlink contributors. See LICENSE file in the stlink source distribution.
Feb 2018 | Open Source STMicroelectronics Stlink Tools |