5.4.1. Build RPU Application - 5.4.1. Build RPU Application - 2023.1 English - XD339

Versal Restart TRD (XD339)

Document_ID
XD339
Release_Date
2026-01-12
Version
2023.1 English
  1. On Linux, set up the Vivado environment in a terminal window by sourcing <Vitis_install_path>/settings64.sh

  2. Launch the Vitis Unified Software Platform:

    vitis -workspace $VSSR_WS/rpu_ws
    
  3. From the Welcome screen or File -> New menu select Create Application Project

    vitis_welcome
  4. Platform: Select Create a new platform from hardware (XSA), then browse and select the hardware XSA file to be used and press Next.

    create_new_platform
    browse_xsa
    pick_xsa
  5. Application Project Details: Add application name and select r5_0 for the target processor.

    Application_Details
  6. Domain Selection: Create new domain for r5 application to run standalone operating system (default).

    Domain_Details
  7. Application Template: Choose Empty Application(C) and click Finish

    Template
  8. Navigate to BSP Settings and click Modify BSP Settings.

    bsp_nav
    bsp_page
  9. Select libmetal and xilpm libraries from the overview tab.

    lib
  10. Change stdin and stdout to use UART1 instead of UART0 and press Ok to exit bsp settings.

    uart
  11. Import Sources: Right click rpu_app and select Import Sources… (or do File -> import ) and import sources from ${REPO_SRC}/sw/standalone-srcs/rpu_app/src/ and click Finish.

    import_sources
    browse_sources
    select_sources
    import_sources_checkbox
  12. Build all the projects (platform bsp and rpu_app) by clicking the build icon or by right clicking rpu_app in explorer pan and selecting Build Project

    build_select_icon
    build_select_menu
  13. The application will be generated at:

    $VSSR_WS/rpu_ws/rpu_app/Debug/rpu_app.elf
    

For more detailed information on how to use Vitis, please refer to the Vitis Documentation.