Forum Discussion
Altera_Forum
Honored Contributor
11 years agoI don't understand you question.
bat files are files written in batch. they are script files for ms dos and windows similar to .sh .bash .dash for Linux, but a little reduced. CMD files are very similar to BATCH. After you can double clic on it to launch the script. rem : the "tree" commands :-) You have to generate the .flash (and/or .pof) only once on the development computer. On the standalone computer, just use this flash file.to resume at minimum, the batch files are a sequence of commands
keep in mind that there are differnences from the nios shell :
in directory paths change "/" to "\"
replace "$xxxx" by "%xxxx%"
To make the world easy, put the .flash and the .bat in the same directory. For you, the bat file could be :
REM This line is a comment
REM Be ware about the dir separator, it must be "\" (antislash) on Windows
nios2-flash-programmer "C_SOPC_epcs.flash" --base=0x81800 --epcs --id=0x1C53A879 --timestamp=1395209813 --device=1 --program --verbose
REM Make a pause so as the user to check if all is OK
pause
Your antivirus/Windows may warn you when you try to launch the bat.