Under the Vitis Components, select the zcu102_platform -> Settings -> vitis_comp.json.
Then select zcu102_platform -> psu_cortexa53_0 -> standalone_psu_cortexa53_0 -> Board support package.
Edit proc_extra_compiler_flags to ensure extra compiler only has this value
-g -Wall -Wextra -Os
as shown below.Regenerate BSP
The next step is to remove unused functions to save code space. To do this, follow the steps below:
In the Vitis Components view, select the fsbl_a53 -> Settings -> vitis_comp.json.
Click UserConfig.cmake.
Select Symbols -> Defined Symbols.
Click the Add Item link.
Enter
FSBL_NAND_EXCLUDE_VAL
FSBL_SECURE_EXCLUDE_VAL
FSBL_SD_EXCLUDE_VAL
At this point, FSBL is ready to be debugged.
You can either debug the FSBL like any other standalone application, or debug FSBL as a part of a boot image by using the Attach to running target mode in System Debugger.
Copyright © 2020–2024, Advanced Micro Devices, Inc. All rights reserved. SPDX-License-Identifier: X11