Forum Discussion
Altera_Forum
Honored Contributor
19 years agosay, the kernel is linked to sdram_base.
if you program the kernel to the cfi flash at flash_base WITHOUT altera supplied cfi boot loader, and the reset vector is pointed to flash_base. after reset, the nios2 will start at flash_base, and the real pc will be (flash_base + xxx), while the chkadr was (sdram_base + xxx) . so they are different. but it is rarely the case. usually the altera cfi boot loader is inserted by elf2flash conversiont utility. after reset, the nios2 will start at flash_base, and run the cfi boot loader, which move the kernel image to sdram_base, and jump to sdram_base. you may find more from user guide of nios2 flash programmer.