Debugging a Bare-Metal Application Using GDB - 2021.2 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
Release Date
2021.2 English

This topic describes how to use GDB to debug bare-metal applications.

To debug bare-metal applications:

  1. Create a sample Hello World project.
  2. Select the application and click Run > Debug As > Single Application Debug (GDB). The Debug Configuration view opens with the Main view selected.

  3. By default, the GDB shipped within the Vitis software platform is used with the default port, but you can specify the GDB and the port in the Debugger view in Debug Configurations.
    Note: Default ports used by the GDB server for different architectures are as follows:
    • Arm: 3000
    • Arm: AArch64
    • MicroBlaze: 3002
  4. Click the Debug button to start debugging the application.