Versions Compared

Key

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

Custom_table_size_100

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:

Prepare file conversion

scroll-ignore
scroll-pdf

...

Table of contents

Table of Contents
outlinetrue

Board overview

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

...

*Configuration sheme depends on current Firmware, see Firmware description

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

Convert .sof to .jic

true
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue

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. Nios II:
      1. set Nios II Processor → Vectors → Reset vector memory to the selected flash memory controller
      2. 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. Nios V:
      1. set Nios V Processor → Vectors → Reset Agent to the selected flash memory controller
      2. set Nios V Processor → Vectors → Reset 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 Nios II 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

Prepare Nios V software project:

  1. Recompile the software project
  2. Open the Nios V Command Shell
  3. Run following commands to generate the .hex file
    Code Block
    themeMidnight
    elf2flash --input path/to/sw_example.elf --output path/to/sw_example.srec \
    --reset  <flash memory controller base address + CPU reset offset> \
    --base <flash memory controller base address> --end <flash memory controller end address> \
    --boot <quartus_installation_path>/niosv/components/bootloader/niosv_bootloader.srec //check directory for correct bootloader file name
    
    riscv32-unknown-elf-objcopy --input-target srec --output-target ihex path/to/sw_example.srec path/to/sw_example.hex

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

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 file:

...

  1. Select

...

  1. File → Convert Programming files

...

  1. from the quartus top menu
  2. Make the following settings in the

...

  1. Convert Programming File

...

  1. 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:

...

    1. 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)
    2. Mode: Active Serial
    3. 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

    4. Highlight

...

    1. Flash Loader

...

    1. in

...

    1. Input files to convert

...

    1. window

    2. Click

...

    1. Add Device...

...

    1. , select correct Device family and Device name and click

...

    1. OK

...



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

    2. Highlight

...

    1. SOF Data

...

    1. in

...

    1. Input files to convert

...

    1. window

    2. Click

...

    1. Add File...

...

    1. , browse to the .sof file you want to convert and click

...

    1. open

...


    1. draw.io Diagram
      borderfalse
      diagramNameconversion_settings_4
      simpleViewerfalse
      width
      linksauto
      tbstylehidden
      diagramDisplayName
      lboxtrue
      diagramWidth

...

    1. 808
      revision

...

    1. 1

    2. Highlight selected .sof file

    3. Click

...

    1. Properties

...

    1. , enable Compression and click OK
    2. Click Add Hex Data to open then Add Hex Data window:
      draw.io Diagram
      borderfalse
      diagramNameconversion_settings_5
      simpleViewerfalse
      width
      linksauto
      tbstylehidden
      diagramDisplayName
      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
  1. Click Generate to start converting the .sof file and .hex file to a .jic file
    draw.io Diagram
    borderfalse
    diagramNameconversion_settings_6
    simpleViewerfalse
    width
    linksauto
    tbstylehidden
    diagramDisplayName
    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