创建可启动镜像并执行闪存编程 - 2022.1 Chinese

Vitis 统一软件平台文档 嵌入式软件开发 (UG1400)

Document ID
UG1400
Release Date
2022-04-26
Version
2022.1 简体中文

以下片段中显示的 XSCT 会话示例演示了“Hello World”应用的创建过程。其中还显示了通过构建系统工程并将镜像编程到闪存上,使用应用搭配比特流来创建可启动镜像的过程。

注释: 创建应用工程时,Vitis 环境会创建平台工程和系统工程。平台工程包含启动组件(如 FSBL),器件初始化时需这些组件。此示例假定您当前使用的是 ZC702 开发板,并使用 -flash_type qspi_single 作为搭配 program_flash 的选项。
setws /tmp/wrk/workspace
app create -name a9_fsbl -hw /tmp/wrk/system.xsa -os standalone -proc ps7_cortexa9_0 -template {Hello World}
app build -name a9_hello
# Build the system project. This builds the platform project to generate fsbl.elf
# and creates a bif file and runs Bootgen to create a boot image (BOOT.BIN)
sysproj build -name a9_hello_system
# Modify the bif and run Bootgen if needed
# exec bootgen -arch zynq -image output.bif -w -o /tmp/wrk/BOOT.bin
# Program the flash and verify the flash device
exec program_flash -f /tmp/wrk/BOOT.bin -flash_type qspi_single -blank_check -verify -cable type xilinx_tcf url tcp:localhost:3121