Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

5.2.3.3.3. Programming

Programming Files Generation

  1. In the Intel® Quartus® Prime software, go to File > Convert Programming Files to open the Convert Programming File tool.
  2. Under Output programming file section, set the following items:
    1. Programming file type: JTAG Indirect Configuration File (.jic)
    2. Configuration device: Select according to your EPCQ type
    3. Mode: Active Serial
    4. File name: You may select your preferred path for the output file (.jic). By default this is generated under your project root directory.
    5. Keep the default settings for Create Memory Map File and Create config data RPD.
    Figure 94. Convert Programming File Settings
  3. Under Input files to convert section:
    1. Select Flash Loader, then Add Device to select the FPGA device that you are using. Click OK when you are done.
    2. Select SOF Data, then Add File to choose the *.sof file generated by Intel® Quartus® Prime compilation.
    3. Click on the *.sof file that you have just added. Next, select Properties and enable Compression.
    4. Click on SOF Data and select Properties. The SOF Data Properties window opens. Under Address mode for selected pages, select Start and set the start address (32-bit hexadecimal).
      Figure 95. SOF Data Properties
    5. Click OK to close the window.
    6. Select Add Hex Data to open the Hex Data Properties window. Select the Absolute addressing button and browse to the HEX file location. Click OK when you are done.
      Note:
      • You may select Relative addressing if you would like to set a relative address to the reset vector offset (0x01E00000) you configured earlier. For example, setting a start address of 0x01F00000 for the relative addressing mode changes the start address to 0x3D00000.
      • There is an issue for Absolute Addressing for EPCQ. Refer to this knowledge database for more details.

      Figure 96. HEX Data Properties
    7. Select Generate to generate the *.jic programming file.

EPCQ Flash Programming

  1. Ensure that the FPGA device’s Active Serial (AS)15 pin is routed to the EPCQ flash. This routing allows the flash loader to load into the EPCQ flash and configure the board correctly.
  2. Ensure the MSEL pin setting on the board is configured for AS programming.
  3. Open the Intel® Quartus® Prime Programmer and make sure JTAG was detected under the Hardware Setup.
  4. Select Auto Detect and choose the FPGA device according to your board.
  5. Right-click on the selected FPGA device and select Edit > Change File. Next, select the generated *.jic file.
  6. Select the Program/ Configure check boxes for FPGA and EPCQ devices. Click Start to start programming.
    Figure 97.  Intel® Quartus® Prime Programmer Window When Programming EPCQ Flash on the Development Board
  7. Reset your FPGA device using the reset button or power cycle your hardware.
15 MSEL setting is required for AS configuration