Debug Neoverse N2 Reference Design with Arm Development Studio
Introduction
Set up your development environment
Debug SCP, LCP, and RSE
Debug BL1
Debug BL31
Debug BL33 and UEFI
Next Steps
Debug Neoverse N2 Reference Design with Arm Development Studio
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Start the Fixed Virtual Platform (FVP) model for the RD-N2 software stack before creating the debug connection.
Replace
-Og with -O0 in the appropriate <compiler>-Baremetal.cmake file under rd-infra/scp/cmake/Toolchain. Rebuild before inspecting variables in the debugger.Add a branch-to-self instruction,
b ., in bl1_entrypoint at <workspace>/rd-infra/tf-a/bl1/aarch64/bl1_entrypoint.S. The primary CPU spins there so you can attach and set breakpoints.Open the Functions view, find
bl31_entrypoint, and set a breakpoint. Continue execution until the processor stops at BL31.Boot the FVP without debugging and record the relocated driver addresses from the Non-secure AP console. Repeat the same boot actions in the same order when debugging so that the module locations match.