Altera_Forum
Honored Contributor
20 years agoEPCS BOOT
I have read carefully about nios2_flash_programmer but I still can not make the EPCS boot. Following is the programmer.sh which flash_programmer generate automaticly:
==================================== $SOPC_KIT_NIOS2/bin/sof2flash --flash=U59 --offset=0x0 --epcs --input=E:/backup/standard_e/standard.sof --output=standard.flash $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=standard.flash --sof=$SOPC_KIT_NIOS2/components/altera_nios_dev_board_cyclone_1c20/system/altera_nios_dev_board_cyclone_1c20.sof --epcs $SOPC_KIT_NIOS2/bin/elf2flash --flash=U59 --epcs --base=0x0 --end=0x7fffffff --input=hello_led_2.elf --output=epcs_controller.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_epcs.srec $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=epcs_controller.flash --sof=__NO_SOF_PLEASE__ --epcs $SOPC_KIT_NIOS2/bin/elf2flash --flash=U5 --base=0x00000000 --end=0x800000 --reset=0x2100000 --input=hello_led_2.elf --output=ext_flash.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_cfi.srec $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=ext_flash.flash --sof=__NO_SOF_PLEASE__ --base=0x00800000 ======================================= My questions are: 1. The first two commands put the hardware(nios core) into EPCS at address 0 and it can really configure FPGA after reset. Since bootloader code is resided on on-chip memory inside FPGA, I think we need only put the software (firmware) into EPCS behind FPGA configuration data. Why there are four commands to realize it? 2. The last two commands seems to put something to FLASH instead of EPCS, is there any need to program the flash? I only want to boot from EPCS! I think it has nothing to do with FLASH. 3. Most strange of all, the last two commands never suceed. It displays "INPUTFILE=EMPTY, EXITING". The result is: it can not boot from EPCS. Thanks in advance.