--- Quote Start ---
originally posted by pleskacj@Nov 22 2005, 10:05 AM
cfi_flash.flash file is created, but contain only this line
s01a000055373a30313a30303030303030303a3030374646464646d5
all paths are correct.
do you have any idea?
thanks a lot.
jan
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=11086)
--- quote end ---
--- Quote End ---
Hi Jan,
The elf2flash tool places only segments of your .elf file that fall within the flash device memory span into the output .flash file. This includes data that you specifically link into flash memory via linker assignment, or, your application code if your CPU *reset* address points to flash memory.
The most likely cause of the problem you have is that the CPU reset address is not pointing to flash; to change this, open SOPC Builder, go to the 'more cpu settings' tab, change the reset address, re-generate, and re-compile your code (quartus recompile is also necessary because the hardware changes).
When you compile your software with the reset address pointing to flash, the .reset section (I *think* its this section, if memory serves me correctly) poitnts to external flash. The elf2flash tool will detect this as it parses the elf and then generate a flash file that the boot copier reads, copying data to ram, during the boot process.