Altera_Forum
Honored Contributor
12 years agoCan't boot with code in sdram
I've made a sopc system in which the niosii cpu's reset vector is in cfi_flash and exception vector is in sdram.
I can run and debug my program in eclipse very well, but when I use flash programmer download the .elf file into cfi_flash, the nios won't boot when power up. If I change the exception vector of niosii into onchip memory and change every section in the Linker script to onchip memory, nios can boot. I guess the problem is that when power up, data can't be loaded correctly from flash into sdram, but as I can run program in sdram using eclipse, the sdram core seems no problem.