Forum Discussion
Altera_Forum
Honored Contributor
13 years agoI'm not sure but I think the exception vector needs to be set to the RAM. The startup code in crt0.s takes care of initializing the exception RAM with the correct vectors.
Except for that your settings look ok. You also have another alternative, it is to set all the sections in Sdram (including .text and .rodata) but still put the CPU's reset vector to the flash (and still exceptions in Sdram). In that case the Nios Programmer should detect that you need to copy your application to the SDRAM and will put a bootloader for you in the flash.