Disabling Optimizations - 2024.1 English

Vitis Tutorials: Embedded Software (XD260)

Document ID
XD260
Release Date
2024-06-19
Version
2024.1 English
  1. Under the Vitis Components, select the zcu102_platform -> Settings -> vitis_comp.json.

  2. Then select zcu102_platform -> psu_cortexa53_0 -> standalone_psu_cortexa53_0 -> Board support package.

  3. Edit proc_extra_compiler_flags to ensure extra compiler only has this value -g -Wall -Wextra -Os as shown below.

  4. Regenerate BSP

The next step is to remove unused functions to save code space. To do this, follow the steps below:

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

  2. Click UserConfig.cmake.

  3. Select Symbols -> Defined Symbols.

  4. Click the Add Item link.

  5. Enter FSBL_NAND_EXCLUDE_VAL FSBL_SECURE_EXCLUDE_VAL FSBL_SD_EXCLUDE_VAL

../../../../_images/0041.png

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

Terms and Conditions