You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

Table of contents

 


Create SDK Project from Vivado

Variant (a): Use additional TE Script functions

  1. Requirements (for HDF-Export with Bitfile):
    1. Project must be started with TE-Batch file or TE Scripts must be loaded. See InitialiseTE-scripts on Vivado/LabTools.
    2. "Generate Bitstream" must be finished (Use GUI or typ on Vivado TCL-Console to generate Bitstream:"TE::hw_build_design").
  2. Typ "TE::sw_run_sdk" on Vivado TCL-Console (for more options type "TE::sw_run_sdk -help")
  3. SDK Project will be generated and opened on subfolder /workspace/sdk/. Local Library folder /sw_lib will be included automatically.

Variant (b): Use Xilinx GUI Export

  1. Requirements (for HDF-Export with Bitfile):
    1. "Generate Bitstream" must be finished.
  2. For HDF export click: File→Export→Export Hardware (Select "Include bitstream" and your preferred folder)
  3. To Launch SDK click: File→Launch SDK (Select your HDF location and preferred SDK workspace)
  4. SDK Project will be generated and opened (default location /vivado/<project name>.sdk).
  5. (option) Include local library folder in SDK, click: Xilinx Tool→Repositories→New Local Repositories

Create Software Application with SDK Template

  1. Click:File→Application Project
  2. Select Name and OS (Example Name:Hello World, OS:standalone)
  3. Click: Next
  4. Select Application (Example Hello World)
  5. Click Finished
  6. Project with Xilinx Hello Word will be generated automatically

Modify BSP-Settings

  1. Double Click on the system.mss of your Application Project BSP folder in the Project Explorer.
  2. Click Modify this BSP's Settings.
  3. Modify BSP stdin/sdtout peripheral, drivers or libraries settings

 

Debug Software Application

  1. Right Click on the Software Project in the Project Explorer.
  2. Click:Debug As→Launch on Hardware (System Debugger)
  3. View will be changed to Debugging and Application will be stared on Hardware with break point on first main entry. (Click F6 (step over) or F5 (step into) to step to the next line).

Examples

This examples shows only the basic steps without TE-Module specific settings 

Xilinx "Hello World" on Zynq

  1. Create SDK Project
    1. See Create SDK Project from Vivado
  2. Create FSBL:
    1. See Create Software Application with SDK Template
    2. (optional) If necessary, modify FSBL-BSP stdin/sdtout peripheral, drivers or libraries settings for the FSBL Application
      1. See Modify BSP-Settings
  3. Create Hello_World:
    1. See Create Software Application with SDK Template
    2. (optional) If necessary, modify FSBL-BSP stdin/sdtout peripheral, drivers or libraries settings for the Hello World Application
      1. See Modify BSP-Settings
  4. Create Boot.bin
    1. Right Click on the hello_world Project in the Project Explorer.
    2. Click:Create Boot Image

      All partition settings will be set automatically,if Build Process of FSBL and Hello World was successful.
    3. Create Image
  5. Program Flash
    1. Click:Xilinx Tools→Program Flash
    2. Select generated Boot.bin (optional select "Verify after flash")
    3. Program Flash
  6. Connect Serial Console
    1. COM Port: See OS Device Manager
    2. Speed: depends on your Vivado Project. On Zynq Devices Default 115200
  7. Reboot Zynq


    Xilinx Hello World appears only one time on startup, so use HW-Reset Button on Module or Vivado Hardware Manager "Boot from Configuration Memory Device" Command to reboot PS. Alternatively modify helloworld.c to run print "Hello World" in endless loop.

 

References

  • UltraFast Design Methodology Guide for the Vivado Design Suite  (UG949)
  • UltraFast Embedded Design Methodology Guide  (UG1046)
  • Zynq UltraScale+MPSoC Software Developer Guide (UG1137)
  • Zynq-7000 All Programmable SoC Software Developers Guide (UG821)
  • Vivado Design Suite User Guide - Embedded Processor Hardware Design (UG898)
  • Generating Basic Software Platforms - Reference Guide (UG113)
  • PetaLinux KICKStart

 

  • No labels