Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi VLorenzo
But it should put only reset vector and exception vector at reset address and exception addresses no? why is it putting entire boot code. still i am unclear. actually it should put reset vector(jump to boot code) at reset address and exception vector(jump to exception service routine) and then put boot loader before main of the program. please give me your views on this. regards prasad residing some where --- Quote Start --- originally posted by vlorenzo@Oct 4 2005, 07:25 AM hi:
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.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10135)
--- quote end ---
--- Quote End ---