Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Custom_table_size_100

Board overview

To configure the flash memory of some modules with Intel FPGA(/SoCs from Trenz Electronic, a .jic file is needed. This file is built from the .sof file from the Quartus project and optionally the .hex file from the software application.
This is a short tutorial on how to create the .jic file.

More detailed instructions can be found directly on the Intel website: AN 736: Nios II Processor Booting From Altera Serial Flash (EPCQ)

Prepare file conversion

Scroll Ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue

The following table lists some boards for which you need to generate a .jic file to program the flash configuration device.

Scroll Title
anchorTable_BO
title-alignmentcenter
titleBoard Overview
Scroll Table LayoutorientationportraitsortDirectionASCrepeatTableHeadersdefaultstylewidthssortByColumn1sortEnabledfalsecellHighlightingtrueBoardFPGAFlash memory**Configuration shemeTEI0003Cyclone 10 LPEPCQ16AAS/StandardTEI0006*Cyclone 10 GXMT25QU01GAS/StandardTEI0009Cyclone 10 LPEPCQ16A ... EPCQ32AAS/Standard

*Configuration sheme depends on current Firmware, see Firmware description

**for correct flash memory device see the schematics of the board


Generate a .jic file only from the .sof file (without .hex file)

  1. Compile the quartus project to generate a .sof file
  2. Go to Convert .sof with .hex file (optional) to .jic file and ignore the steps to add the .hex file

Generate a .jic file from the .sof file with .hex file

Prepare Quartus Project:

  1. Compile the quartus project to generate a .sof file
  2. Make following changes in platform desginer:
    1.  Serial Flash Controller II Intel FPGA IP or Generic QUAD SPI Controller II Intel FPGA IP (depending on the configuration flash memory) is needed to load the software application from the configuration flash memory
    2. set Nios II Processor → Vectors → Reset vector memory to the selected flash memory controller
    3. set Nios II Processor → Vectors → Reset vector offset to an address after the .sof file (minimum address: start address + file size of the .sof file)
  3. Recompile the whole quartus project


Prepare software project:

  1. Open the software application in Nios II SBT for Eclipse
  2. Recompile the software project
  3. Right-click on project folder and select Make Targets -> Build
  4. In the opened Make Targets window select mem_init_generate and click Build
    1. the .hex file is created in the mem_init folder in the software project directory

Convert .sof with .hex file (optional) to .jic file

Convert .sof to .jic

Scroll Ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue

Do following steps to convert the .sof + .hex file to a .jic :

Compile your quartus project to generate a .sof file

file:

  1. Select "File → Convert Programming files" from the quartus top menu
  2. Make the following settings in the "Convert Programming File" window

                  

    draw.io Diagram
    borderfalse
    diagramNameConversion_Settings
    simpleViewerfalse
    width
    linksauto
    tbstylehidden
    diagramDisplayName
    lboxtrue
    diagramWidth827
    revision2

    1. Programming file type: JTAG Indirect Configuration File (.jic)
    2. Configuration device: (see #Board overview → Flash memory)depending on the configuration flash memory used on the module
      (if the memory device is not listed click "..." button next to the dropdown menu, select correct Device family and in the Configuration Device section the correct memory device)
    3. Mode: Active Serial
    4. File name: specify the target directory and the output file name

      draw.io Diagram
      borderfalse
      diagramNameconversion_settings_2
      simpleViewerfalse
      width
      linksauto
      tbstylehidden
      diagramDisplayName
      lboxtrue
      diagramWidth809
      revision2

    5. Highlight "Flash Loader" in "Input files to convert " window

    6. Click "Add Device...", select correct Device family and Device name and click "OK"

      draw.io Diagram
      borderfalse
      diagramNameconversion_settings_3
      simpleViewerfalse
      width
      linksauto
      tbstylehidden
      diagramDisplayName
      lboxtrue
      diagramWidth810
      revision2

    7. Highlight "SOF Data" in "Input files to convert" window

    8. Click "Add File...", browse to the .sof file you want to convert and click "open"

      draw.io Diagram
      diagramDisplayName
      borderfalsetrue
      diagramNameconversion_settings_4
      simpleViewerfalse
      width
      linksauto
      tbstylehiddentop
      lboxtrue
      diagramWidth807808
      revision21

    9. Highlight selected .sof file

    10. Click "Properties", enable "Compression" and click "OK"
  3. Click "Generate" to start converting the file
    1. , enable Compression and click OK
    2. Click Add Hex Data to open then Add Hex Data window:
      draw.io Diagram
      bordertrue
      diagramNameconversion_settings_5
      simpleViewerfalse
      width
      linksauto
      tbstyletop
      lboxtrue
      diagramWidth298
      revision1
      1. set Addressing mode to Absolute addressing
      2. set Bit-level endianness to Big endian
      3. click "...", browse to the .hex file location and click open
      4. click OK to add the .hex file
  4. Click Generate to start converting the .sof file and .hex file to a .jic file
    draw.io Diagram
    bordertrue
    diagramNameconversion_settings_6
    simpleViewerfalse
    width
    linksauto
    tbstyletop
    lboxtrue
    diagramWidth841
    revision2

You can use the Quartus Programmer to program the flash configuration device with the .jic file.

References

Scroll Ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue




Scroll Only


HTML
<style>
.wiki-content .columnLayout .cell.aside {
width: 0%;
}</style>



Scroll pdf ignore


Custom_fix_page_content

Table of contents

Table of Contents
outlinetrue