I use the IDE to complier a programme.error:elf2fash boot copier overlapsdata in flash .I don't know why? My programme have problem or other ? Thank you!
When you use the flash programmer, it populates the beginning of the flash with the bootloader. Have you stuck some read only data in that location?
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?
I also got the same error information when I am running the Nios II IDE with the "Hello World" Example.The followings are those error message, could you take a quick look at them? Kind Status Priority Description Resource In Folder Location Error *** [ext_flash.flash] Error 5 hello_world_0 Error 53 PM - (??) elf2flash: Error generating Flash file, exiting[Jan 19, 2005 2] hello_world_0 line 58 Error 53 PM - (??) elf2flash: Error reading boot copier[Jan 19, 2005 2] hello_world_0 line 58 Error 53 PM - (??) elf2flash: Read error: File not found: /boot_loader_cfi.srec[Jan 19, 2005 2] hello_world_0 line 58