Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

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

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?

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.