Intel® Stratix® 10 Hard Processor System Remote System Update User Guide

ID 683021
Date 11/10/2021

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

9.1. Update Hardware Designs to use HPS First

When creating the hardware projects, enable HPS first for each project, either from the Intel® Quartus® Prime GUI, or as shown in bold below:
# compile hardware designs: 0-factory, 1,2-applications, 3-factory update
rm -rf hw && mkdir hw && cd hw
mv ghrd-socfpga-ACDS-21.1pro-20.1std/s10_soc_devkit_ghrd .
rm -rf ghrd-socfpga-ACDS-21.1pro-20.1std
for version in {0..3}
rm -rf ghrd.$version
cp -r s10_soc_devkit_ghrd ghrd.$version
cd ghrd.$version
make clean
make scrub_clean
rm -rf *.qpf *.qsf *.txt *.bin *.qsys ip/qsys_top/ ip/subsys_jtg_mst/ ip\
sed -i 's/BOOTS_FIRST .*= .*/BOOTS_FIRST := hps/g' Makefile
sed -i 's/ENABLE_WATCHDOG_RST .*= .*/ENABLE_WATCHDOG_RST := 1/g' Makefile
sed -i 's/WATCHDOG_RST_ACTION .*= .*/WATCHDOG_RST_ACTION := remote_update/g' Makefile
sed -i 's/0xACD5CAFE/0xABAB000'$version'/g' create_ghrd_qsys.tcl
export IP_ROOTDIR=~/intelFPGA_pro/21.2/ip
~/intelFPGA_pro/21.2/nios2eds/ \
make generate_from_tcl
echo "set_global_assignment -name RSU_MAX_RETRY_COUNT 3" \
>> ghrd_1sx280lu2f50e2vg.qsf
~/intelFPGA_pro/21.2/nios2eds/ \
make sof
cd ..
rm -rf s10_soc_devkit_ghrd
cd ..