Table of Contents
This design module demonstrates the FreeRTOS and application running on RPU-0, where:
- FreeRTOS boots on RPU-0
- FreeRTOS application "heartbeat" prints periodic messages on UART-1
Build Flow Tutorials
This tutorial uses both Vitis and PetaLinux tools. It is recommended to use separate shells for each of the tools.
The heartbeat application is a FreeRTOS application that executes on RPU-0 after the FSBL has finished. This application is a simple dual task application that demonstrates communication between the two tasks by printing messages to the UART1 console.
- from the top menu tab choose 'File' → 'New platform', enter Project name as 'hw_platform_0' and select 'Next'.
- Choose 'Create from hardware specification (XSA)' and browse to the xsa file in the 'hwfile' directory of 'ws_heartbeat workspace',
- Select operating system as 'freertos10_xilinx' and processor as 'psu_cortexr5_0' and click Finish.
- In the System Project Settings tab, Add the new custom platform generated from xsa. Click Yes on the dialog box, when prompted to change the platform.
- double click on 'heartbeat.prj' in the Explorer tab, and click 'Navigate to BSP settings'
- modify BSP settings for Cortexr5_0 processor
- under overview panel select 'freertos10_xilinx' and modify 'stdin/stdout' to 'psu_uart_1', select ok.
- Right-click on the
heartbeat project and select 'Build Project'.
This tutorial shows how to build a boot image that includes the heartbeat application using the PetaLinux build tool. This step assumes you have run through the PetaLinux build in DM1 previously.
Run Flow Tutorial