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.
Create an empty bare-metal application for Cortex-R5F Core 0 in the hello_system system project:
In the Explorer View, select File → New Example → Empty Application → Create Application Component from Template. The Create Application Component wizard welcome screen opens.
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
Select the ‘vitis-sys.json’ file under settings within hello_system in the Explorer view and click Add Existing Component.
Select Application and then select ‘testapp_r5’. Now the testapp_r5 application resides inside the hello_system component.
Import the prepared source code for testapp_r5:
In the Explorer view, expand the hello_system project to find the testapp_r5 project.
Right-click the src folder within Sources inside the testapp_r5 and select Import → Files to open the Import view.
Navigate to the design files folder (ref_files/example5/testapp_r5.c)
Select the testapp.c file.
Click Open.
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.