Visible to Intel only — GUID: qgi1658914320135
Ixiasoft
1.5.1. Regenerating ELF File
By default, the ELF file is generated when you generate the dynamic design example. However, in some cases, you need to regenerate the ELF file if you modify the software file or regenerate the dp_core.qsys file. Regenerating the dp_core.qsys file updates the .sopcinfo file, which requires you to regenerate the ELF file.
- Go to <project directory>/software and edit the code if necessary.
- Go to <project directory>/script and execute the following build script:
- On Windows:
- Search and open Nios® V Command Shell.
- In the Nios® V Command Shell, go to <project directory>/script and execute quartus_py .\build_niosv_sw.py -d.
- On Linux:
- Launch a Nios® V Shell, $QUARTUS_ROOTDIR/../niosv/bin/niosv-shell.
- In the Nios® V Shell, go to <project directory>/script and execute quartus_py ./build_niosv_sw.py -d.
- On Windows:
- Make sure an .elf file is generated in <project directory>/niosv-software/build.
- Download the generated .elf file into the FPGA without recompiling the .sof file by running the following script:
niosv-download<project directory>/software/dp_demo/*.elf.
- Push the reset button on the FPGA board for the new software to take effect.