Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
DIOT Zynq Ultrascale-based System Board
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
41
Issues
41
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
DIOT Zynq Ultrascale-based System Board
Commits
e5c1876a
Commit
e5c1876a
authored
May 11, 2021
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding scripts to generate simple helloworld app
parent
7c61268c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1511 additions
and
0 deletions
+1511
-0
README
sw/standalone_hello_world/README
+4
-0
bootgen.bif
sw/standalone_hello_world/bootgen.bif
+7
-0
gen_platform.tcl
sw/standalone_hello_world/gen_platform.tcl
+42
-0
Si5341-RevD-diot_sb-Registers.h
...dalone_hello_world/my_src/Si5341-RevD-diot_sb-Registers.h
+935
-0
helloworld.c
sw/standalone_hello_world/my_src/helloworld.c
+523
-0
No files found.
sw/standalone_hello_world/README
0 → 100644
View file @
e5c1876a
To generate FSBL, PMUFW and helloworld application follow these steps:
1. Copy your *.xsa file exported from Vivado to hardware/
2. Execute: xsct gen_platform.tcl
sw/standalone_hello_world/bootgen.bif
0 → 100644
View file @
e5c1876a
the_ROM_image:
{
[bootloader, destination_cpu = a53-0] xsct_ws/diot_fsbl/Release/diot_fsbl.elf
[destination_cpu = pmu] xsct_ws/diot_pmufw/Release/diot_pmufw.elf
[destination_device = pl] xsct_ws/diot_wr_platform/hw/diot_wr_mpsoc.bit
[destination_cpu = a53-0] xsct_ws/hello_world/Release/hello_world.elf
}
sw/standalone_hello_world/gen_platform.tcl
0 → 100644
View file @
e5c1876a
setws xsct_ws
platform
create -name diot_wr_platform -hw hardware/diot_wr_mpsoc.xsa -no-boot-bsp
# create domain for FSBL
domain create -name
"fsbl_domain"
-os standalone -proc psu_cortexa53_0
bsp setlib xilffs
bsp setlib xilsecure
bsp setlib xilpm
bsp config zynqmp_fsbl_bsp true
# create domain for PMU firmware
domain create -name
"pmufw_domain"
-os standalone -proc psu_pmu_0
bsp setlib xilfpga
bsp setlib xilsecure
bsp setlib xilskey
# create standalone sw domain
domain create -name
"standalone_domain"
-os standalone -proc psu_cortexa53_0
# generate platform
platform
generate
# Generate FSBL APP
app create -name diot_fsbl -template
{
Zynq MP FSBL
}
-platform diot_wr_platform -domain fsbl_domain -sysproj diot_wr_system
# Generate PMU FW APP
app create -name diot_pmufw -template
{
ZynqMP PMU Firmware
}
-platform diot_wr_platform -domain pmufw_domain -sysproj diot_wr_system
# Generate Hello World APP
app create -name hello_world -template
{
Hello World
}
-platform diot_wr_platform -domain standalone_domain -sysproj diot_wr_system
# Configure applications
app config -name diot_fsbl build-config release
app config -name diot_pmufw build-config release
app config -name hello_world build-config release
exec
cp my_src/helloworld.c xsct_ws/hello_world/src/
exec
cp my_src/Si5341-RevD-diot_sb-Registers.h xsct_ws/hello_world/src/
# Building all apps
app build -name diot_fsbl
app build -name diot_pmufw
app build -name hello_world
# Generate BOOT.BIN
exec
bootgen -image bootgen.bif -arch zynqmp -w -o BOOT.bin
sw/standalone_hello_world/my_src/Si5341-RevD-diot_sb-Registers.h
0 → 100644
View file @
e5c1876a
This diff is collapsed.
Click to expand it.
sw/standalone_hello_world/my_src/helloworld.c
0 → 100644
View file @
e5c1876a
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment