Altera_Forum
Honored Contributor
15 years agocan't boot from epcs to external sram
Hello,
I have a problem while booting a niosII program from epcs4 to external external sram (1Mx16bit). My sopc system is composed of the following parts: 1) niosII processor, with reset vector at epcs controller, and exception vector at on-chip memory; 2) 30KBytes on-chip memory; 3) epcs controller; 4) Tri-state bridge; 5) 1Mx16bits SRAM controller. The byte_enable pin of my sram chip is always enabled. 6) PIO for leds. My program is just to let the leds runing. well, the problem is: 1) If the program is linked to on-chip memory, everything works fine (Both in debug mode and "Power Down Doesn't Lose" mode). 2) If it is linked to my external sram, It runs well in debug mode, by clicking "Run Configuration" in the niosII IDE. but, when I load the sof and elf file to epcs and then repower my board, the program doesn't run anymore. It seems that the bootloader in epcs controller can't copy codes from epcs to external sram. Or there are something else I didn't notice. Can anybody help me out? Regards.