logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

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.

       Stlink version 2 is used by default unless the option –stlinkv1 is given.

Examples

       Run GDB server on port 4500 and connect to it

              $ st-util -p 4500
              $ gdb
              (gdb) target extended-remote localhost:4500

Name

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

Options

-h,--help
              Print this message.

       --version
              Print version information

       -vXX, --verbose=XX
              Specify a specific verbosity level (0..99)

       -v,--verbose
              Specify generally verbose logging

       -sX, --stlink_version=X
              Choose what version of stlink to use, (defaults to 2)

       -1,--stlinkv1
              Force stlink version 1

       -p4242, --listen_port=1234
              Set the gdb server listen port.  (default port: 4242)

       -m,--multi
              Set gdb server to extended mode.  st-util will continue listening for  connections  after  discon‐
              nect.

       -n,--no-reset
              Do not reset board on connection.

       --semihosting
              Enable ARM Semihosting output on stdout

See Also

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

Synopsis

st-util [<ARGS>...]

See Also