Step 6: Compile the projects and generate the .elf file
The BSP and application projects must be compiled separately for Nios II. For Nios V, the process is different, as shown below:
- For Nios II:
cd <BSP_sub_folder>
make all
cd <Quartus_Prime_project_folder>
cd <Application_folder>
make all
- For Nios V:
cmake -G "Unix Makefiles" -B <Application_folder> -S <Application_folder>
make -C <Application_folder>
The compilation process produces the .elf file, which is used to program the application onto the FPGA.