AN 1011: TinyML Applications in Altera FPGAs Using LiteRT for Microcontrollers
ID
848984
Date
4/07/2025
Public
5.2.1. Booting from QSPI
Using this process, you can generate a QSPI image file that includes the configuration bitstream along with an embedded FSBL, including the firmware file that combines SSBL (bl31.bin) and the zephyr application.
- Create the fip.bin image that contains both the SSBL and the Zephyr application.
$ cd $TOP_FOLDER/tinyml_bins $ ./fiptool create --soc-fw bl31.bin --nt-fw zephyr.bin fip.bin
- Download the QSPI .pfg file to create the .jic file.
$ wget https://releases.rocketboards.org/2024.11/zephyr/agilex5/hps_zephyr/hello_world/ qspi_boot/qspi_flash_image_agilex5_boot.pfg
- Create the .jic file.
quartus_pfg -c qspi_flash_image_agilex5_boot.pfg
- Set MSEL to JTAG (OFF-OFF-OFF-OFF).
- Turn on the Device.
- Program the QSPI flash.
quartus_pgm -c 1 -m jtag -o "pvi;qspi_image.jic"
- Set MSEL to QSPI (OFF-ON-ON-OFF).
- Power-on the Device.
- Inspect the HPS terminal.