Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

.JIC file Generation

Hi all,

I wish to generate JIC file with NIOS firmware + Logic to configure EPCS and using command line, so I did a script to do this.

1) Convert SOF to Flash

sof2flash --epcs --input=$sof --output=hw.flash --quiet

2) Convert ELF to Flash

elf2flash --epcs --after=hw.flash --input=$elf --output=sw.flash

3) Concatenate

cp hw.flash hw_sw.flash

cat sw.flash >> hw_sw.flash

4) Create HexFile

nios2-elf-objcopy --input-target srec --output-target ihex hw_sw.flash $hex

So, after I need to use Quartus->File->Convert Programming Files... to generate JIC using EP3C25 Device, EPCS128 (I'm using Spansion 128Mbit) and after Programmer to download.

I search by quartus_cpf in command_line reference, but I didn't find any references to convert hex to jic, only sof.

Anybody can help with other way to create JIC (its usefull to send file to production line) or

say where I'm misunderstanding :) ?

Thx,

Veiga

Quartus 8.0

12 Replies