Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12611 Discussions

5.1 FlashPrommer for production

Altera_Forum
Honored Contributor II
947 Views

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
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
297 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
297 Views

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
0 Kudos
Reply