NIOS II .elf and FPGA config .sof file

Status
Not open for further replies.

digi001

Full Member level 5
Joined
Apr 5, 2011
Messages
244
Helped
22
Reputation
44
Reaction score
21
Trophy points
1,298
Activity points
2,904
I understand in order to configure an FPGA the Altera serial flash devices can be used EPCS4,16,...

But in order to store the NIOS II C code which generates a .elf file, do i need a separate Flash memory to do this?
 
Last edited:

Hi,

No you only need one EPCS flash. The elf will be right after the sof in the epcs memory.

You need to have an EPCS flash controller in your SOPC design.Then you need to set the reset vector of your NIOS to the EPCS flash.

In order to write your sof and elf to flash you have to use Nios Flash programmer (**broken link removed**

You can also use command line tools:

sof2flash --epsc --input=your.sof --output=yoursof.flash
elf2flash --epsc --base=your_epcs_flash_controller_base_address --input=your.elf --output=yourelf.flash --after=yoursof.flash

nios2-flash-programmer --base=your_epcs_flash_controller_base_address --epcs --program yoursof.flash
nios2-flash-programmer --base=your_epcs_flash_controller_base_address --epcs --program yourelf.flash

Franck.
 
Reactions: digi001

    digi001

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…