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: AN 736: Nios II Processor Booting From Altera Serial Flash (EPCQ)
Prepare file conversion
Scroll Ignore | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The following table lists some boards for which you need to generate a .jic file to program the flash configuration device.
anchor | Table_BO |
---|---|
title-alignment | center |
title | Board Overview |
*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)
- Compile the quartus project to generate a .sof file
- 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:
- Compile the quartus project to generate a .sof file
- Make following changes in platform desginer:
- 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
- set Nios II Processor → Vectors → Reset vector memory to the selected flash memory controller
- 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)
- Recompile the whole quartus project
Prepare software project:
- Open the software application in Nios II SBT for Eclipse
- Recompile the software project
- Right-click on project folder and select Make Targets -> Build
- In the opened Make Targets window select mem_init_generate and click Build
- 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 .jicScroll Ignore | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Do following steps to convert the .sof + .hex file to a .jic :
Compile your quartus project to generate a .sof filefile:
- Select "File → Convert Programming files" from the quartus top menu
Make the following settings in the "Convert Programming File" window
draw.io Diagram border false diagramName Conversion_Settings simpleViewer false width links auto tbstyle hidden diagramDisplayName lbox true diagramWidth 827 revision 2 - Programming file type: JTAG Indirect Configuration File (.jic)
- 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) - Mode: Active Serial
File name: specify the target directory and the output file name
draw.io Diagram border false diagramName conversion_settings_2 simpleViewer false width links auto tbstyle hidden diagramDisplayName lbox true diagramWidth 809 revision 2 Highlight "Flash Loader" in "Input files to convert " window
Click "Add Device...", select correct Device family and Device name and click "OK"
draw.io Diagram border false diagramName conversion_settings_3 simpleViewer false width links auto tbstyle hidden diagramDisplayName lbox true diagramWidth 810 revision 2 Highlight "SOF Data" in "Input files to convert" window
Click "Add File...", browse to the .sof file you want to convert and click "open"
draw.io Diagram border falsetrue diagramName conversion_settings_4 simpleViewer false width links auto tbstyle hidden diagramDisplayNametop lbox true diagramWidth 807808 revision 21 Highlight selected .sof file
- Click "Properties", enable "Compression" and click "OK"
- Click "Generate" to start converting the file
- , enable Compression and click OK
- Click Add Hex Data to open then Add Hex Data window:
draw.io Diagram border true diagramName conversion_settings_5 simpleViewer false width links auto tbstyle top lbox true diagramWidth 298 revision 1 - set Addressing mode to Absolute addressing
- set Bit-level endianness to Big endian
- click "...", browse to the .hex file location and click open
- click OK to add the .hex file
- , enable Compression and click OK
- Click Generate to start converting the .sof file and .hex file to a .jic file
draw.io Diagram border true diagramName conversion_settings_6 simpleViewer false width links auto tbstyle top lbox true diagramWidth 841 revision 2
You can use the Quartus Programmer to program the flash configuration device with the .jic file.
References
Scroll Ignore | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
- AN 736: Nios II Processor Booting From Altera Serial Flash (EPCQ)
- Intel Quartus Prime Pro Edition User Guide: Programmer
- Intel Quartus Prime Standard Edition User Guide: Programmer
Scroll Only | ||
---|---|---|
|
Scroll pdf ignore | ||||||
---|---|---|---|---|---|---|
|