Altera_Forum
Honored Contributor
21 years agoChanging location of .entry section
Hi,
i'm working on a bootloader for a system with a Cyclone 1C6, Nios II/s,256kb SRAM and an Atmel serial dataflash (2 megabits). The bootloader will load the main application from the dataflash into the SRAM and jump to it. The problem is making the linker use another reset (or .entry) location for the mainapp than what's entered in SOPC builder, because at startup it has to run the bootloader. I've done some .elf dumping, and I see that it does locate the .text, .rodata,.exception and .rwdata sections to the SRAM as set in the system lib, but the .entry is located at the reset location. Why are .entry and .exception not settable in the IDE at the system lib properties? I guess I have to change the linker script, not really something I like; IMHO this greatly defies the advantages of auto generated makefiles and the IDE. The Altera documentation is not really exhaustive (yet). Thanks for any input, Jeroen