Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I use that Quartus version as well.

    Do you see the "Generated .jic file with date and time" message in Quartus when you run assembler on Quartus ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    ok, I don't know how but that code works :)

    here is what i think might have worked:

    1) Closed Quartus II

    2) Deleted all the database folders.

    3) Reopened the project and compiled it.

    Thanks @ amilcar for helping out