Nios® V Embedded Processor Design Handbook

ID 726952
Date 7/08/2024
Public
Document Table of Contents

7.3.5.1. Generating Initial RSU Image Using SOF file

  1. On the File menu, click Programming File Generator.
  2. Select Active Serial x4 from the Configuration mode drop-down list. The current Quartus® Prime software only supports remote system update feature in Active Serial x4.
  3. On the Output Files tab, assign the output directory and file name.
  4. Select the output file type as JTAG Indirect Configuration File (.jic) with
    1. Memory Map File (.map)
    2. Raw Programming File (.rpd)

    By default, the .rpd file type is little-endian. Set the Bit swap to On to generate the .rpd file in big endian format.

    Note: If you are using a third-party programmer that does not support the little-endian format, set the Bit swap to On.
    Figure 127. Programming File Generator (Output Files)
  5. On the Input Files tab, click Add Bitstream, select the factory.sof file and click Open. Repeat this step for the application-0.sof.
    Figure 128. Programming File Generator (Input Files)
  6. On the Configuration Device tab, click Add Device, select your flash memory and click OK. The Programming File Generator tool automatically populates the flash partitions.
  7. Select the FACTORY_IMAGE partition and click Edit.
  8. In the Edit Partition dialog box, select the factory.sof file in the Input Files drop-down list and click OK.
    Note: You must assign Page 0 to Factory Image. Altera recommends that you let the Quartus® Prime software assign the Start address of the FACTORY_IMAGE automatically by retaining the default value for Address Mode which is Auto.
    Figure 129. Programming File Generator (Edit Partition)
  9. Select the flash memory and click Add Partition.
  10. In the Add Partition dialog box, perform the following steps:
    • Define Name as App-0
    • Select the application-0.sof file from the Input file drop-down list
    • Assign Page 1
    • Assign Address Mode as Start with starting address at 0x01000000.
  11. If you are generating .jic files, click Select at the Flash loader, select your device family and device name, and click OK.
    Figure 130. Programming File Generator (Configuration Device)
  12. Click Generate to generate the remote system update programming files. After generating the programming file, proceed to program the flash memory with the initial RSU image.