Forum Discussion

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

How to download a .bin file to the flash memory?

Hi all:

Recently, I want to download a test code which pattern is Hex(intel) or Bin to the flash memory. I have searched some data on the internet. Obviously, I did not find a solution. Some people say that it can be achieved through the NIOS II Command Shell tool. Is there anyone who know it or have another methord and help me!

Thank you very much!

William

4 Replies

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

    you can use the bin2flash command to create a srec file from a binary file, and the nios2-flash-programmer to write it to the flash.

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

    Thank you very much! I have just read "NIOS II Flash Programmer User Guide", and I have some understanding of it now. I have succeeded to download the Bin file into flash memory, but failed to download the program software project into it. The console window told the error as follows: Empty flash content cannot be programmed or verified. What is the problem?

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

    This error message is strange... it looks like it can't find any content to write to the flash. Can you check that you are giving it the correct file to flash? Do you have any spaces in the file name or path?

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

    Thank you very much! Yes, I am very sure about it! I have download the program software project into the flash memory once. And I also can run the program as Nios II hardware. This problem is very strange.