Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

about flash programming

Altera_Forum
Honored Contributor II
1,705 Views

hello , 

who can tell me what's mean of the error? 

 

***[cfi_flash_0.flash]Error 5 

57PM-(??)elf2flash:Boot copier overlaps data in flash[Jan 25,2005 5]  

57PM-(??)elf2flash:Error generating Flash file,exiting[Jan 25,2005 5]
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
574 Views

If you set your reset address to point to flash and your text segment to a different memory then elf2flash will try to put a small piece of code (the boot copier) into flash at the reset address which copies your code and data from flash to the memories you specified. 

 

This error message indicates that you have used the flash where the boot copier would go for something else, so the boot copier can't be inserted. This means that your system probably won't function. 

 

Are you using one of the standard designs? Which memories did you set your code and data segments to?
0 Kudos
Altera_Forum
Honored Contributor II
574 Views

hello,  

i used my own design, my flash is 2M, the address is from 0x000000 to 0x1fffff,  

i set 

 

Reset Address cfi_flash_0 0x00000000 0x00000000 

Exception Address cfi_flash_0 0x00000020 0x00000020 

 

 

Program Memory sram_0 0x00200000 

Data Memory sram_0 0x00200000 

Host Communication uart_0 0x00310000 

Debugging Communication uart_0 0x00310000
0 Kudos
Altera_Forum
Honored Contributor II
574 Views

I think your problem is caused by your exception address pointing into flash. Try putting the exception address in sram. 

 

This will get you better performance as well, as the exception handler should be in fast memory.
0 Kudos
Altera_Forum
Honored Contributor II
574 Views

hello, 

when i set  

Reset Address cfi_flash_0 0x00000000 0x00000000 

Exception Address s_ram_0 0x00200020 0x00200020 

 

the error is: 

jtag_atlantic connection failed to open: 

There are no JTAG UARTs available which match the --device and 

--instance options you provided. 

 

but i used ByteBlasterII can download my sof files,what's the means of the error? 

 

thank you!
0 Kudos
Reply