In the Vitis IDE, select File → New Example → Linux Empty Application → Create Application Component from Template. The Create Application Component - Linux Empty Application wizard opens.
Use the information in the table below to make your selections in the wizard.
Screen
System Properties
Settings
Application Project Details
Select platform from repository
zcu102
Application project name
ps_pl_linux_app
Domain
Domain
Linux_Domain
Click Finish.
The New Project wizard closes and the Vitis IDE creates the ps_pl_linux_app application project, which can be found in the Project Explorer view.
In the Vitis IDE, select File → New Component → System Project. The Create System Project wizard opens.
Use the information in the table below to make your selections in the wizard.
Screen
System Properties
Settings
System Project Details
Select platform from repository
zcu102
System project name
ps_pl_linux_app_system
Select the ‘vitis-sys.json’ file under settings within ps_pl_linux_app_system in the Explorer view and click Add Existing Component.
Select Application and then select ‘ps_pl_linux_app’. Now the ps_pl_linux_app application resides inside the ps_pl_linux_app_system component.
In the Project Explorer view, expand the ps_pl_linux_app project.
Right-click the src folder within Sources inside ps_pl_linux_app and select Import → Files to open the Import view.
Navigate to the design files folder (ref_files/design1)
Select the ps_pl_linux_app.c file.
Click Open.
Note
The application might fail to build because of a missing reference to the pthread library. The next section shows how to add the pthread library.