Altera_Forum
Honored Contributor
8 years agoNIOS can not boot from EPCS ?!!!
Hi guys , im trying to make the NIOS II boot from the same EPCS where the configuration is stored.
Im using Quartus 13 and it has only the legacy serial flash controller. The documentation says the first 1-Kbyte of the address space of the flash controller is a ROM bootloader . So I set the value of the reset vector to the address of the serial flash controller , and the reset offset to 0x00000000 (pointing to the bootloader) and the exception vector pointing to On-chip RAM . I then converted the .SOF of the FPGA and the .elf file of the NIOS app to flash files using the following commands: sof2flash --input=hw.sof --output=hw.flash --epcs --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 then I followed the following method to program the EPCS using Altera USB blaster: 1. Open the Convert Programming File tool from the file menu in Quartus II 2. Select .jic file for “Programming file type” 3. Select EPCQ256 for “Configuration device” 4. Make sure “Active Serial” is selected for “Configuring device mode”. 5. Click on “Flash Loader”, then click on “Add Device” to select the Cyclone V device you’re using then click “Ok”. 6. Click on “SOF Data”, then click on “Add File” to select the .sof file generated by Quartus II compilation. 7. Click on the .sof file you have just added, click on “Properties” and enable the “Compression” Page 3 of 4 8. Click the “Add Hex Data” button 9. Select “Relative Addressing” 10. Select your <project>.hex file containing your Nios II software image 11. Click on “Generate” to generate the .jic file I then re-power , the FPGA configuration works , but the NIOS is not booting as it should (Whole design working on 25 MHz) Now whats the problem ?