Visible to Intel only — GUID: rti1572936883346
Ixiasoft
1.4.3.1. Regenerating and Downloading ELF File
By default, the ELF file is generated when you generate the dynamic design example.
Note: You need to regenerate the ELF file if you modify a software file such as the main.c or config.h files or when you modify and 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:
source build_sw.sh.
- On Windows, search and open Nios® II Command Shell. In the Nios® II Command Shell, go to <project directory>/script and execute source build_sw.sh.
- On Linux, launch the Platform Designer, and open Tools > Nios® II Command Shell. In the Nios® II Command Shell, go to <project directory>/script and execute source build_sw.sh.
- Make sure an .elf file is generated in <project directory>/software/dp_demo.
- Download the generated .elf file into the FPGA without recompiling the .sof file by running the following script:
nios2-download <project directory>/software/dp_demo/*.elf
- Push the reset button on the FPGA board for the new software to take effect.