AN 1011: TinyML Applications in Altera FPGAs Using LiteRT for Microcontrollers

ID 848984
Date 4/07/2025
Public
Document Table of Contents

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.
  1. 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
    
  2. 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  
  3. Create the .jic file.
    quartus_pfg -c qspi_flash_image_agilex5_boot.pfg
  4. Set MSEL to JTAG (OFF-OFF-OFF-OFF).
  5. Turn on the Device.
  6. Program the QSPI flash.
    quartus_pgm -c 1 -m jtag -o "pvi;qspi_image.jic"
  7. Set MSEL to QSPI (OFF-ON-ON-OFF).
  8. Power-on the Device.
  9. Inspect the HPS terminal.