Creating a Custom Bare-Metal Application for an Arm Cortex-R5F Based RPU in the Same System Project - 2024.2 English - UG1209

Zynq UltraScale+ MPSoC Embedded Design Tutorial (UG1209)

Document ID
UG1209
Release Date
2025-03-20
Version
2024.2 English

You will now create a bare-metal application for Arm Cortex-R5F. The application source files are provided in the ref_files/example5 directory. They will be imported in the next steps.

  1. Create an empty bare-metal application for Cortex-R5F Core 0 in the hello_system system project:

    1. In the Explorer View, select File → New Example → Empty Application → Create Application Component from Template. The Create Application Component wizard welcome screen opens.

    2. Use the information in the following table to make your selections in the wizard.

      Screen

      System Properties

      Settings

      Application project details

      Application project name

      testapp_r5

      Platform

      zcu102

      Domain

      Domain

      standalone_r5

    3. Select the ‘vitis-sys.json’ file under settings within hello_system in the Explorer view and click Add Existing Component.

    4. Select Application and then select ‘testapp_r5’. Now the testapp_r5 application resides inside the hello_system component.

  2. Import the prepared source code for testapp_r5:

    1. In the Explorer view, expand the hello_system project to find the testapp_r5 project.

    2. Right-click the src folder within Sources inside the testapp_r5 and select Import → Files to open the Import view.

    3. Navigate to the design files folder (ref_files/example5/testapp_r5.c)

    4. Select the testapp.c file.

    5. Click Open.

  3. Open testapp_r5.c in to review the source code for this application:

    • Double-click testapp_r5.c.

    • The application configures the UART interrupt and sets the processor to WFI mode.