2018-03-01 10:40:10 +00:00
|
|
|
% st-util(1) Open Source STMicroelectronics Stlink Tools | stlink
|
2016-09-15 03:15:53 +00:00
|
|
|
%
|
2018-03-01 10:40:10 +00:00
|
|
|
% Feb 2018
|
2016-09-15 03:15:53 +00:00
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
2018-03-01 10:51:26 +00:00
|
|
|
st-util - Run GDB server to interact with STM32 device
|
2016-09-15 03:15:53 +00:00
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
2018-03-01 10:51:26 +00:00
|
|
|
*st-util* \[\<ARGS>...]
|
2016-09-15 03:15:53 +00:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
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.
|
|
|
|
|
2022-01-10 16:24:29 +00:00
|
|
|
The STLink device to use can be specified using the --serial parameter.
|
2016-09-15 03:15:53 +00:00
|
|
|
|
|
|
|
# OPTIONS
|
|
|
|
|
2018-11-19 19:45:50 +00:00
|
|
|
-h, \--help
|
2016-09-15 03:15:53 +00:00
|
|
|
: Print this message.
|
|
|
|
|
2018-11-19 19:45:50 +00:00
|
|
|
\--version
|
2016-09-18 09:17:25 +00:00
|
|
|
: Print version information
|
|
|
|
|
2018-11-19 19:45:50 +00:00
|
|
|
-v *XX*, \--verbose=*XX*
|
2016-09-15 03:15:53 +00:00
|
|
|
: Specify a specific verbosity level (0..99)
|
|
|
|
|
2018-11-19 19:45:50 +00:00
|
|
|
-v, \--verbose
|
2016-09-15 03:15:53 +00:00
|
|
|
: Specify generally verbose logging
|
|
|
|
|
2018-11-19 19:45:50 +00:00
|
|
|
-p *4242*, \--listen_port=1234
|
2016-09-15 03:15:53 +00:00
|
|
|
: Set the gdb server listen port. (default port: 4242)
|
|
|
|
|
2018-11-19 19:45:50 +00:00
|
|
|
-m, \--multi
|
2016-09-15 03:15:53 +00:00
|
|
|
: Set gdb server to extended mode. st-util will continue listening for connections after disconnect.
|
|
|
|
|
2018-11-19 19:45:50 +00:00
|
|
|
-n, \--no-reset
|
2016-09-15 03:15:53 +00:00
|
|
|
: Do not reset board on connection.
|
|
|
|
|
2018-11-19 19:45:50 +00:00
|
|
|
\--semihosting
|
2018-03-01 10:51:26 +00:00
|
|
|
: Enable ARM Semihosting output on stdout
|
2016-09-15 03:15:53 +00:00
|
|
|
|
|
|
|
# EXAMPLES
|
2018-03-01 10:51:26 +00:00
|
|
|
|
2016-09-15 03:15:53 +00:00
|
|
|
Run GDB server on port 4500 and connect to it
|
|
|
|
|
|
|
|
$ st-util -p 4500
|
|
|
|
$ gdb
|
|
|
|
(gdb) target extended-remote localhost:4500
|
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
2018-03-01 10:51:26 +00:00
|
|
|
st-flash(1), st-info(1)
|
2016-09-15 03:15:53 +00:00
|
|
|
|
|
|
|
# COPYRIGHT
|
2018-03-01 10:51:26 +00:00
|
|
|
|
2016-09-15 03:15:53 +00:00
|
|
|
This work is copyrighted. Stlink contributors.
|
|
|
|
See *LICENSE* file in the stlink source distribution.
|