Forum Discussion

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

bin2flash problem

I have use bin2flash command to convert a .bin file( a picture) to .flash file with the parameter --location .Then I use the nios2flash to download the .flash file to flash.But when I run the programme in the IDE environment , the location is wrong ,because the programme can't

find the location correctly.The picture in the flash can't display in CRT.

So I want know if the command have debug .

2 Replies

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

    Which board are you trying to flash? (Nios II dev. board or a custom board). If you are using a development kit then all the target information should already be present. If you have your own custom board, then you need to create new target information that defines the layout of the flash device.

    I recommend reading the flash programming guide under the Nios II literature since it covers what you need to know about the flash programmer. If you have done all this and it still hasn't work then you may be running into an issue where the target device doesn't get updated properly. If that is the case: close the IDE, open Quartus, open the SOPC builder design, re-select the board you are working with, exit out of SOPC builder and Quartus, and finally open the IDE and try flashing (by selecting the target in the SOPC builder drop down selector, you update the target information for the IDE to use).

    Hope that helps.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi BadOmen

    I have check the configure information.It is correct.I think if the method that I use the UltraEdit software to convert the .bmp to .bin have problem.Because altera corporation don't provide the tools.

    Now I have a problem again.Why I use the bin2flash command to

    transform three .bin files each 301k or two .bin files the same content ,but

    the output file .flash is the same big 752K.

    Thank you.