Altera_Forum
Honored Contributor
21 years agoelf2flash error
I use the IDE to complier a programme.error:elf2fash boot copier overlaps data in flash .I don't know why? My programme have problem or other ? Thank you!
You don't want to be running code out of flash (you can but it's better just to populate it into the flash and let the bootloader move it).
You also can't have your write data section in flash either (flash doesn't support writing a single byte or word at a time). If you want to avoid having the bootloader there, you can manually do the flash programming from the Nios II SDK shell and when you go to create the software flash file you do not specify the --boot command (watch the command lines in the IDE to see what the flash programmer is doing). But before doing that can you explain exactly where you want to boot from, and where you have located your code (text, rodata, rwdata). Also are you using a reference design or is this a system you made yourself?