Forum Discussion

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

5.1 FlashPrommer for production

As mentioned here the new flashprommer works fine if the workaround is used.

As we do not use the ide and therefore use commandline to programm the flash with the fpga images and the application binaries.

This works realy fine ..... as long as there is already a target nios.

But what about production purposes ? if there is a board that has never seen any nios ? the only solution we have found is to use the quartus prommer to store the actual image inside the fpga and then start the batch job to programm the flash.

but that is need very production friendly.

does anybody here know how to setup another cmd lines in a way that the fpga / flash can be programmed with just one ( !!! 1 !!! ) job ?

For production purposes it must be as easy as possible. some people in production want only one button (to start the job) and a green or a red light ( passed / fail indicator ).

another question / problem we have encoutered here is that the bash job must be located unter C:\altera\kits\nios2_51 to run properly. we could start the job from any other location without problem and it never succeded.

Regards.

Michael Schmitt

2 Replies

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

    Hello Michael,

    You can make a simple batch file which load the configuration into the FPGA (which hold a Nios II system). After that the flash programmer will program the desired stuff. Take a look at the following lines:

    @cls

    quartus_pgm fpga_conf.cdf

    nios2-flash-programmer --sidp=0x00400638 --id=731660770 --timestamp=1136466759 --base=0x00000000 cmb.flash

    nios2-flash-programmer --sidp=0x00400638 --id=731660770 --timestamp=1136466759 --base=0x00000000 ext_flash.flash

    Regards,

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

    Hi niosIIuser,

    So far so good; but then, is it possible to reset the FPGA with a quartus_pgm command line? I mean, I don't want to cycle power off/on; I just want to reload the FPGA with the new configuration via a JTAG command.

    Thanks for any help.

    Fernando