Modifying the Linker Script - 2024.2 English - UG1209

Zynq UltraScale+ MPSoC Embedded Design Tutorial (UG1209)

Document ID
UG1209
Release Date
2025-03-20
Version
2024.2 English
  1. In the Project Explorer, expand the tmr_psled_r5 project.

  2. In the src directory, double-click lscript.ld to open the linker script for this project.

  3. In the linker script in Available Memory Regions, modify the following attributes for psu_r5_ddr_0_MEM_0:

    Base Address: 0x70000000 Size: 0x10000000

    The following figure shows the linker script modification. The following figure is for representation only. Actual memory region might vary in case of isolation settings.

    _images/image36.png

    This modification in the linker script ensures that the RPU bare-metal application resides above 0x70000000 base address in the DDR memory, and occupies no more than 256 MB of size.

  4. Type Ctrl+S to save the changes.

  5. Modify the BSP to configure UART with UART_1. For more information, see Modifying the hello_sys_a53 Application Source Code.

  6. Click the tmr_psled_r5 project and select Build under the flow tab.

  7. Verify that the application is compiled and linked successfully and that the tmr_psled_r5.elf file is generated in the tmr_psled_r5\build folder.