Forum Discussion

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

INCLUDE SOFTWARE INTO EPCS (.jic)

Hello,

i tried many different method on how to include my software for nios2 processor (.elf file) into the jic file together with the .sof fpga file.

I have an fpga with a nios2 processor. I have only the processor and an on-chip ram. My simple software just turn on and off 4 leds.

if i load the .sof file first with quartus programmer and then run the Eclipse IDE to debug the software all works, but when i create a single .jic file to program the epcs nothing works.

I would like to know the procedure to include both fpga .sof file generated by quartus compilation and .elf file that include my software into a single .jic file.

Thanks for your help

12 Replies

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

    I'd check:

    - that my_file.hex actually contains the expected binary data.

    - that the entry point of the program is at the start of the hex file.

    - that the jtag debugger reads the correct memory contents.

    Actually, if the jtag debugger is still present, you'll need to do something to get it to exit and allow the cpu to run from it's normal reset point.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I agree with dsl. Enable the In-System Memory Content Editor for the on-chip ram (please note that this only works for single port memories). Check the content of the memory using this JTAG tool. Then you can run eclipse and download the application(elf) to the on-chip memory. The content should be the same as in the .hex file, if everything works properly.