Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi:
For booting from the CFI flash device, the tools insert a small boot code (see source at altera\kits\nios2\components\altera_nios2\sdk\src\boot_loader_sources in install directory) that copies your program from the CFI to ram. If you place the exception address also in flash (which will surely be at offset 0x20 from flash start) the boot code will overlap with it. Open the SOPCBuilder and change the exception address to ram (internal or external). This should solve your problem. Setting reset address to flash and program (code/data/etc.) to ram will instruct the tools to generate the proper boot loader to relocate your code from flash to ram.