Skip to main content

Using GDB with i.MX 8M Plus

This article covers specific details on how to use GDB with the i.MX 8M Plus board in Arm Virtual Hardware (AVH).

For general information on using GDB with AVH, refer to the GDB / LLDB article.

Cores Overview

The i.MX 8M Plus processor is arranged like AAAAm.

AArch64-A Cores

The first four cores are AArch64-A cores.

The IDs for these cores are 0-3.

AArch32-M Core

The last core is an AArch32-M cores.

The ID for this core is 4.

Ports

Use the monitor mux command to ask for info from the GDB server.

(gdb) monitor mux
> port 0: stopped, AArch64-A, CPUs 0-3
- port 1: not connected, AArch32-M, CPU 4

The ports returned are relative of port 4000.

If you want to connect to the AArch64-A cores, you would connect to port 4000.

And for AArch32-M core, you would connect to port 4001.