Lines Matching +full:serial +full:- +full:target
14 Serial Protocol (RSP) that allows you to remotely debug Zephyr
17 The protocol supports different connection types: serial, UDP/IP and
18 TCP/IP. Zephyr currently supports only serial device communication.
25 possible to asynchronously send commands to the target.
33 * Continue and step the target
43 Using Serial Backend
46 The serial backend for GDB stub can be enabled with
49 Since serial backend utilizes UART devices to send and receive GDB commands,
51 * If there are spare UART devices on the board, set ``zephyr,gdbstub-uart``
64 Using Serial Backend
67 #. Build with GDB stub and serial backend enabled.
75 .. code-block:: bash
77 target remote <serial device>
81 .. code-block:: bash
83 target remote /dev/ttyUSB1
97 .. code-block:: console
99 ./scripts/twister -p qemu_x86 -T tests/subsys/debug/gdbstub
101 The test should run successfully, and now let's do something similar step-by-step
112 .. zephyr-app-commands::
113 :zephyr-app: tests/subsys/debug/gdbstub
114 :host-os: unix
116 :gen-args: '-DCONFIG_QEMU_EXTRA_FLAGS="-serial tcp:localhost:5678,server"'
119 Note how we set :kconfig:option:`CONFIG_QEMU_EXTRA_FLAGS` to direct QEMU serial
125 .. code-block:: bash
127 <SDK install directory>/x86_64-zephyr-elf/bin/x86_64-zephyr-elf-gdb
131 .. code-block:: text
133 (gdb) symbol-file <build directory>/zephyr/zephyr.elf
137 .. code-block:: text
141 #. Tell GDB to connect to the Zephyr gdbstub serial backend which is exposed
142 earlier as a server through the TCP port ``-serial`` redirection at QEMU.
144 .. code-block:: text
146 (gdb) target remote localhost:5678
150 .. code-block:: text
161 .. code-block:: text
177 .. code-block:: text
195 .. code-block:: text
201 .. code-block:: text
219 .. code-block:: text
224 .. code-block:: text
232 .. code-block:: text
239 .. code-block:: text
256 .. code-block:: text
272 .. code-block:: text
287 .. code-block:: text
298 in GDB via :kbd:`Ctrl-C` does not currently work as the Zephyr gdbstub does