1st-util(1)                          stlink                          st-util(1)
2
3
4

NAME

6       st-util - Run GDB server to interact with STM32 device
7

SYNOPSIS

9       st-util [<ARGS>...]
10

DESCRIPTION

12       Start  a GDB server to interact with a STM32 device Run the main binary
13       of the local package (src/main.rs).
14
15       If a port number is not specified using the  –listen_port  option,  the
16       default 4242 port will be used.
17
18       Stlink version 2 is used by default unless the option –stlinkv1 is giv‐
19       en.
20
21       The STLinkV2 device to use can be specified in the environment variable
22       STLINK_DEVICE on the format :.
23

OPTIONS

25       -h, --help
26              Print this message.
27
28       --version
29              Print version information
30
31       -v XX, --verbose=XX
32              Specify a specific verbosity level (0..99)
33
34       -v, --verbose
35              Specify generally verbose logging
36
37       -s X, --stlink_version=X
38              Choose what version of stlink to use, (defaults to 2)
39
40       -1, --stlinkv1
41              Force stlink version 1
42
43       -p 4242, --listen_port=1234
44              Set the gdb server listen port.  (default port: 4242)
45
46       -m, --multi
47              Set  gdb server to extended mode.  st-util will continue listen‐
48              ing for connections after disconnect.
49
50       -n, --no-reset
51              Do not reset board on connection.
52
53       --semihosting
54              Enable ARM Semihosting output on stdout
55

EXAMPLES

57       Run GDB server on port 4500 and connect to it
58
59              $ st-util -p 4500
60              $ gdb
61              (gdb) target extended-remote localhost:4500
62

SEE ALSO

64       st-flash(1), st-info(1)
65
67       This work is copyrighted.  Stlink contributors.  See  LICENSE  file  in
68       the stlink source distribution.
69
70
71
72Open Source STMicroelectronics StlinFkebTo2o0l1s8                         st-util(1)
Impressum