Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download these source files: hello_source_2019.2.zip

  2. Extract the zip file. The source directory contains application main.c file and other required files.

  3. Start Xilinx Vitis Software.

  4. Create application project from project menu.

  5. Click on next if welcome page is displayed

  6. Create platform from fixed XSA file by selecting “Create a new platform from hardware (XSA)“

  7. Give XSA file path as below:

    • <Vitis installation path>/Vitis/2020.1/data/embeddedsw/lib/fixed_hwplatforms/zcu102.xsa

  8. Click on next to add application project details.

  9. Give an application project name Ex. hello_world.

  10. Select appropriate target processor (e.g., psu_cortexr5_0) from processor list. Then click on next.

  11. Select empty application from the template then select finish to create project.

  12. Now from hello_world.prj file click on “Navigate to BSP Settings“ to change BSP settings.

  13. Click on “Modify BSP Settings…“

  14. Select “xilpm” library from Board Support Package Settings dialog box and click OK. Re-generate BSP Sources.

  15. Now right click on hello-world from Project Explorer window, select “Properties” from drop-down menu and go to “Resource”. A location of the project will be displayed.

  16. Go to that location, a folder named “src” will be present. Copy all the files extracted from source.zip file into “src” folder. Refresh the project by right clicking on hello-world from Project Explorer and selecting refresh option.

  17. From the Project Explorer window, right click on hello-world, select Properties, expand C/C++ General, and go to Paths and Symbols.

  18. Add “/hello-world/src” path in includes section. Click OK.

  19. To enable the prints on UART: From the Project Explorer window, right-click on hello-world, select Properties, expand C/C++ General, and go to Paths and Symbols, then go to symbols, add DEBUG_MODE macro, apply & close.

...

  1. To build project right click on hello-world from Project Explorer window, select “Build Project“ to build project.

...