Intel® FPGA University Program
University Program Material, Education Boards, and Laboratory Exercises
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
1124 Discussions

How to boot Nios II from EPCS flash and run the program from SDRAM in board DE0-Nano

ThangND
Beginner
305 Views

Hi, 

I'm using the DE0-Nano board and I'm trying to program my Nios II application code via the EPCS flash and run it from SDRAM. 

 

Here is what I've done: 

1. Qsys: 

ThangND_0-1646571075168.png

 

I've set the reset vector of Nios CPU to the epcs flash. 

 

2. After I've compiled my .sof and .elf file, I opened the Nios II command shell and typed the following command lines: 

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

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

- nios2-elf-objcopy --input-target srec --output-target ihex sw.flash sw.hex

 

3. Finally, I've compiled all of those files to a general .jic file to load into my EPCS. 

ThangND_2-1646571557139.png

 

However, after programming the .jic file, the Nios II program still not ran. Could anyone tell me how to solve this issue ?  

 

0 Kudos
1 Solution
ShengN_Intel
Employee
191 Views

Hi,

 

You may check on this similar previous case https://community.intel.com/t5/FPGA-SoC-And-CPLD-Boards-And/Can-t-get-DE0-nano-board-to-boot-from-EP... probably can help you out.

 

Thanks,

Best regards,
Sheng

View solution in original post

1 Reply
ShengN_Intel
Employee
192 Views

Hi,

 

You may check on this similar previous case https://community.intel.com/t5/FPGA-SoC-And-CPLD-Boards-And/Can-t-get-DE0-nano-board-to-boot-from-EP... probably can help you out.

 

Thanks,

Best regards,
Sheng

Reply