Forum Discussion
Altera_Forum
Honored Contributor
10 years agoNios II EPCS booting problem
Hi, I am using DE0 nano and trying to boot Nios II from EPCS configuration device. I am following the procedure mentioned on this link (http://www.alterawiki.com/wiki/epcs_bootloaders). Th...
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- Follow these steps: Nios II Booting using Default EPCS Bootloader: 1- Add EPCS Flash Controller in Qsys 2- Connect the Clk input of EPCS Flash Loader IP to a separate clock of < 25Mhz 3- Set Reset Vector offset of NiosII to the Base Address of EPCS Flash Loader. 4- Set Exception vector to any On Chip RAM 5- Generate Qsys 6- Open BSP Editor and set all linker regions to SDRAM / onchip memory 7- Generate BSP and Build the BSP project 8- Build Your C code and obtain *.elf 9- Goto make targets->Build and run "mem_init_generate" 10- From mem_init folder include *.qip file in your Quartus project and recompile to get *.SOF 11- copy *.SOF and *.elf files in a separate folder i.e /output 12- perform following in NiosII command Shell: 1. Create a flash file for the hardware and software image sof2flash --input=<hwimage>.sof --output=hwimage.flash --epcs --verbose elf2flash --input=<elf file>.elf --output=swimage.flash --epcs --after=hwimage.flash --verbose 2. Convert the flash images into Hex files nios2-elf-objcopy -I srec -O ihex hwimage.flash hwimage.hex nios2-elf-objcopy -I srec -O ihex swimage.flash swimage.hex 3. Generate *.JIC file Create your jic file using Quartus® II Convert Programming File tool, add the Flash Loader and both hex files with absolute addressing option selected. --- Quote End --- Hi Danish, Thanks for the guidelines. I'm still struggling to get it to boot. I'm not sure how to implement step 10 of your guidelines. How do I 'include *.qip file' in my Quartus project? I'm using Quartus 12 sp2. There is no include option in Eclipse or Quartus. I finished up selecting Add/Remove Files in Project... in Quartus but you said 'From mem_init folder include *.qip file in your Quartus project'. Please advise?