CLion
 
Get CLion
You are viewing the documentation for an earlier version of CLion.

Embedded GDB Server

Last modified: 19 January 2022

OS: Windows (MinGW or MinGW-w64) / Linux / macOS

Required tools: OpenOCD, cross-compiler toolchain

Build targets: CMake / Makefile / custom build target

To debug on-chip with GDB server, use the Embedded GDB Server configuration, which covers the following cases:

  • ST-Link GDB servers (you can find the open-source version of the tools on GitHub).

  • Segger J-Link GDB server.

  • Qemu as a GDB server.

  • OpenOCD as a standalone GDB server, as an alternative to OpenOCD Download & Run configuration.

  • Any other boards or specific GDB stubs that comply with the GDB server protocol.

This configuration works for CMake and Makefile projects, as well as custom build targets.