Jun 11, 2012 #1 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: Jun 12, 2012
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?
Jun 12, 2012 #2 elec4fun Full Member level 3 Joined Jan 24, 2005 Messages 159 Helped 38 Reputation 76 Reaction score 31 Trophy points 1,308 Location Nice, France Activity points 897 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.
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.