Creating the Linux Application Project - 2024.2 English - UG1209

Zynq UltraScale+ MPSoC Embedded Design Tutorial (UG1209)

Document ID
UG1209
Release Date
2025-03-20
Version
2024.2 English
  1. 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.

  2. 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

  3. 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.

  4. In the Vitis IDE, select File → New Component → System Project. The Create System Project wizard opens.

  5. 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

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

  7. 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.

  8. In the Project Explorer view, expand the ps_pl_linux_app project.

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

    2. Navigate to the design files folder (ref_files/design1)

    3. Select the ps_pl_linux_app.c file.

    4. 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.