Modifying the FSBL BSP - 2024.1 English

Vitis Tutorials: Embedded Software (XD260)

Document ID
XD260
Release Date
2024-06-19
Version
2024.1 English

The FSBL application is capable of performing numerous tasks. The tasks it executes are based on the user definition in header files. Some functions are not executed by default. GCC includes these functions into the compiled executable by default. Since the OCM only has a capacity of 128 KB and the FSBL runs on the OCM, unused functions must be stripped out to make FSBL fit into the OCM. Fortunately, the zynqmp_fsbl application template available in the Vitis Unified IDE uses compiler option -Os -flto -ffat-lto-objects by default. You do not need to take any action here.

  1. Select the zcu102_platform under FLOW and Build

Next, set the verbose level in the FSBL. Medium level verbose printing is good for most designs. Enable FSBL_DEBUG_INFO by performing the following steps:

  1. In the Vitis Components view, select the fsbl_a53 -> Settings -> vitis_comp.json.

  2. Select UserConfig.cmake.

  3. Select Symbols > Defined Symbols.

  4. Click the Add Item link.

  5. Enter FSBL_DEBUG_INFO.

../../../../_images/0021.png