Hard Processor System Technical Reference Manual: Agilex™ 5 SoCs

ID 814346
Date 7/19/2024
Public
Document Table of Contents

A.2.7.3. Indirect Write Operation

The following steps describe the general software flow to set up the QSPI controller for indirect write operation:

  1. Perform the steps described in the Setting Up the QSPI Flash Controller section.
  2. Set the Flash memory start address in the indwrstaddr register.
  3. Set up the number of bytes to be transferred in the indwrcnt register.
  4. Set the indirect transfer trigger address in the indaddrtrig register.
  5. Set up the required interrupts through the interrupt mask register (irqmask).
  6. Start the indirect write operation by setting the start field of the indwr register to 1.
  7. Either use the watermark level interrupt or poll the SRAM fill level in the sramfill register to determine when there is sufficient space in the SRAM.
  8. Issue a write transaction to the indirect address to write one flash page of data to the SRAM. Repeat step 8 if more write transactions are needed to complete the indirect write transfer. The final write may be less than one page of data.