Forum Discussion
Hi,
The Programmer uses these valid supported file formats: Programmer Object Files (.pof), SRAM Object Files (.sof), Jam File (.jam), or Jam Byte-Code File (.jbc).
However, the command line quartus_pgm.exe can run in batch file where it reads the file and executes the command. Hope this could solve your issue.
Thank you.
Regards,
Kelly Jialin
I'm sorry, but I don't understand how your answer help me..
As I mentioned, the 'quartus_pgm' command works in the "Nios II Command Shell 18.0" tool but not through the Batch file.
The Batch file stores in the same Path as the other relevant files (X.flash and more).
The 'quartus_pgm' command is the same in both scenarios, so I don't understand why it doesn't work with the Batch file.
If it helps, the command I use to convert an elf file to a flash file:
elf2flash --verbose --input=A.elf --output=X.flash --base=0xY --end=0xC --reset=0xB --boot=${SOPC_KIT_NIOS2}/components/altera_nios2/boot_loader_cfi.srec
Note - Path, X, Y, Z, A, B and C have no special meaning, I can't write down the original data.