System:win8.1
SDK:Quartus II 14.1
FPGA:Cyclone IV
1, the Quartus generated . POF Files (configuration Flash can be automatically generated, not discussed here), and Nios generated . Elf files (in the project directory of the Sofeware folder) are copied to the same folder , Here I copy two files to the JIC new Folder in the D drive .
2. Create a new file with the suffix . Sh in the JIC folder , and use Notepad to create a new my.sh
3. Double-click to open, copy and enter the following code.
sof= "Test.sof"
elf= "Master.elf"
echo "Sof>flash ..."; Sof2flash--epcs--input= $sof--output=sof.flash--quiet
echo "Elf>flash ..."; Elf2flash--epcs--after=sof.flash--input= $elf--output=elf.flash
echo "Cat flash ..."; CP Sof.flash Sof_elf.flash; Cat Elf.flash >> Sof_elf.flash
echo "Flash>hex ..."; Nios2-elf-objcopy--input-target srec--output-target ihex sof_elf.flash Sof_elf.hex
echo "Del flash ..."; Rm-f *.flash
4. Search Command Shell using window 's search function , open
5, Input: Use the CD command to find the newly created my.sh(CD is the function to understand)
6, view JIC folder found a sof_elf.hex file, wait for a moment.
7. Open Quartus,File > Convert programming Files . . Select Configuration device, here Select EPCS16, add sof_elf.hex file
8, view JIC folder, the generated output_file.pof is a cured file.
9, the output_file.pof with as mode download to the FPGA can be cured successfully.
about how to solidify the Quartus and nios programs into the FPGA