Critical Issue
Due to a problem in the Intel® Quartus® Prime Pro Edition software version 19.2, you may see below errors when doing "make_init_generate" in Nios® II Software Build Tools for Eclipse for a needed hex file generation:
Post-processing to create mem_init/generic_quad_spi_controller2_0.hex...
alt-file-convert.exe -I elf32-littlenios2 -O hex --input=test01.elf --output=mem_init/generic_quad_spi_controller2_0.hex --base=0x02000000 --end=0x03ffffff --reset=0x02500000 --out-data-width=8 --boot="/mnt/c/intelFPGA_pro/19.2/nios2eds/components/altera_nios2/boot_loader_cfi.srec"
?? 26, 2020 2:08:33 ?? com.altera.commandApplication.CmdApp severe
SEVERE: elf2flash: Read error: File not found: /mnt/c/intelFPGA_pro/19.2/nios2eds/components/altera_nios2/boot_loader_cfi.srec
?? 26, 2020 2:08:33 ?? com.altera.commandApplication.CmdApp severe
SEVERE: elf2flash: Error reading boot copier
?? 26, 2020 2:08:33 ?? com.altera.commandApplication.CmdApp severe
SEVERE: elf2flash: Error generating Flash file, exiting
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=truenios2-elf-objcopy: 'C:\Users\anchen\AppData\Local\Temp\tmp85ntu6x2': No such file
Converting Nios II ELF file to HEX file. Appending boot file.
To work around this problem, follow the steps below:
1.Please copy boot_loader_cfi.srec from installation path and place it in your NiosII software project folder.
2.Mannully run above alt-file-convert.exe command from NiosII Command Shell, the needed hex file will be generated successfully.
This problem is fixed starting with the Intel Quartus Prime Pro Edition software version 20.1.