Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20709 Discussions

help: data read from not same as the *.flash file,why?

Altera_Forum
Honored Contributor II
1,323 Views

hi, 

i downloaded the *.flash into flash, and run the program successfully, i read the data from ext_flash in nios program, and found it's not the same as the *.flash i used, why?
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
340 Views

Can you please be little specific to have more idea about your problem. Have you downloaded .flash file of your elf or sof or some raw-binary data? And how you are making comparison?

0 Kudos
Altera_Forum
Honored Contributor II
340 Views

hi, 

my flash only included nios program(elf2flash), configuration data(sof2flash) was in epcs. when Por, the program is run in the course of nature. and then read from flash, i found that the data of flash was not the same as the *.flash(elf2flash). i don't know why.
0 Kudos
Altera_Forum
Honored Contributor II
340 Views

i had downloaded the files into flash and epcs, and the board run well.

0 Kudos
Altera_Forum
Honored Contributor II
340 Views

This is because the .flash file is an s-record, which is different than the binary format you would read from the flash chip. 

 

S-records contain additional information about the data, such as where to put it in memory.
0 Kudos
Altera_Forum
Honored Contributor II
340 Views

hi, 

this problem has been solved.
0 Kudos
Reply