Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

Two x NIOS II boot from EPCQ in Quartus 13.1

Altera_Forum
Honored Contributor II
1,733 Views

Hello, 

 

It seems that there are a bug in Quartus software for programming the EPCQ. 

 

The following workaround (http://www.altera.com/support/kdb/solutions/rd11192013_118.html) provided by Altera solve the problem (at least for one NIOS II) 

 

In my design I have two NIOS II's implemented in FPGA. 

To program the FPGA configuration + first CPU + second CPU into the EPCQ, I followed the exact step provided in the above link with slight modifications (in red) as shown below: 

 

Step 8. 

a. sof2flash --input=hw.sof --output=hw.flash --epcq -verbose 

b. elf2flash --input=sw1.elf --output=sw1.flash --epcs --after=hw.flash -verbose 

c. elf2flash --input=sw2.elf --output=sw2.flash --epcs --after=sw1.flash -verbose 

 

Step 9. 

a. nios2-flash-programmer --epcs --base=0x4081000 --device=1 --instance=0 hw.flash 

b. nios2-flash-programmer --epcs --base=0x4081000 --device=1 --instance=0 sw1.flash 

c. nios2-flash-programmer --epcs --base=0x4081000 --device=1 --instance=0 sw2.flash 

 

 

result: the FPGA configuration is uploaded from EPCQ and FPGA is booted up, BUT both CPU's are not functioning (i am not sure if it is uploaded or not). 

 

 

Any idea or advise? 

 

Thanks in advance. 

hbs
0 Kudos
22 Replies
Altera_Forum
Honored Contributor II
149 Views

 

--- Quote Start ---  

I successful!!It also needs to join this step after rebuilding project:"updata Memory initialization File" in Processing tools 

--- Quote End ---  

 

 

Yes you are right........Congratulations!
0 Kudos
Altera_Forum
Honored Contributor II
149 Views

Thank you!!!Thank you very much!!!!

0 Kudos
Reply