AR# 71671

|

SDK - How to debug FSBL code

Description

Xilinx System debugger (XSDB) on an FSBL application does not allow c-code debug or for breakpoints to be placed in FSBL code.

This is due to flags which get set to optimize the code for size.

Solution

To resolve this issue, open the C/C++ Settings for the FSBL application.

Under "ARM v8 gcc compiler" -> Miscellaneous -> Other flags, note the following setting:

-c -fmessage-length=0 -MT"$@" -Os -flto -ffat-lto-objects

Remove the flags for optimization and link-time-optimization as below:

-c -fmessage-length=0 -MT"$@"

After recompiling and restarting the debug session, the C symbols should appear and placing breakpoints should work as expected.

Linked Answer Records

Master Answer Records

Answer Number Answer Title Version Found Version Resolved
66297 SDK - Design Assistant N/A N/A
AR# 71671
Date 11/21/2018
Status Active
Type Solution Center
Tools
People Also Viewed