Debugging a Bare-Metal Application Using GDB - 2022.1 English

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

Document ID
UG1400
Release Date
2022-04-26
Version
2022.1 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.