This series of blogs only introduces the development of the PS side (ARM part) of the Xilinx platform, and does not introduce too much about PL (FPGA).
Table of contents
2. Create a platform project based on XSA
2.1 Switch FSBL target processor
3. Add a domain to the platform
4. Add applications to the domain
1. Development process
2. Create a platform project based on XSA
2.1 Build the target platform
To create a new platform project within the Vitis Integrated Design Environment (IDE), follow these steps:
1. Start the New Platform Project Wizard using one of the following methods:
a. Go to File → New → Platform Project (File > New > Platform Project).
2. Provide a project name in the Project name field and click Next.
3. In the "Platform Project" Wizard, check "Create from hardware specification (XSA)" and select any XSA provided for use with the evaluation board, or browse and Check the XSA exported from the Vivado® Design Suite.
4. Select an operating system and processor to create an initial domain for platform engineering.
5. Click Finish to generate the platform project.
2.1 Switch FSBL target processor
When creating a platform , the target processor can be selected for the FSBL . After the project is created , it can be retargeted to other processors on the Zynq UltraScale+ MPSoC device . To adjust the platform target to Cortex-R5F , perform the following steps :
1. Double-click " platform.spr " .
2. Select " psu_cortexa53_0 " → " zynqmp_fsbl " .
3. Click " Re-target to psu_cortexr5_0 " ( re-target to psu_cortexr5_0 ) .
4. Click the hammer button
3. Add a domain to the platform
1. Double-click the platform.spr file in the " Vitis Explorer " view .
2. Create a new domain
3. Define the domain name.
4. Choose which operating system or bare-metal program in the OS drop-down box
5. Select the corresponding " Processor " ( processor ) , " Runtime " ( runtime ) and " Architecture " ( architecture ) .
6. Click OK . _ _ _ _ _
4. Add applications to the domain
To create a project , do the following :
1. Click " File " → " New " → " Application Project " ( File > New > Application Project ) .
2. Click Next to open the platform view .
3. Choose a platform for your project.
Click Next to continue . _ _ _
4. Provide the name of the application project ( selected by the user ) , the name of the system project ( selected by the user ) , and the target processor of the application. The tool automatically creates systems projects with the given names , but you can add applications to existing systems projects. Click Next to continue to the Domain page . _ _ _
5. Provide the domain name ( user selected ) , select " standalone " for " Operating System " and select the architecture . The tool automatically creates a domain for the target processor. Alternatively , you can use an existing domain in the platform. Click " Next " to continue to
The Templates page . _ _ _
6. Click next, click finish to complete the app creation
5. Compile and run
5.1 compile
Right click on the project and select Build Project
5.2 Debug configuration
Configure the target application, target device, etc.
Right-click the project, select Run As -> Lauch Hardware will run on the target development board through JTAG
Select Run As -> Lauch SW Emulation to start the QEMU virtual machine to run
The lower right corner of the figure above is the print information of the program running.