Due to a problem in the Intel® Quartus® Prime Design Software version 17.1 and earlier, the sof2flash utility may fail to work with EPCQ devices in Intel® Arria® 10, Intel® Cyclone® 10, and Intel® Stratix® 10 designs.
The following error message may be seen:
sof2flash: Unrecognized device family in SOF
To work around this problem, follow the steps below:
- Generate RPD via the Convert Programming Files tool
quartus_cpf -c --device=<EPCQ flash density> -o auto_create_rpd=on -o rpd_little_endian=off <SOF filename> <POF filename>
Example: quartus_cpf -c --device=EPCQ64 -o auto_create_rpd=on -o rpd_little_endian=off c10lp_gsrd.sof c10lp_gsrd.pof
- Convert RPD to .flash via nios2-elf-objcopy tool
nios2-elf-objcopy -I binary -O srec --srec-forceS3 --srec-len 32 <RPD filename> <FLASH filename>
Example: nios2-elf-objcopy -I binary -O srec --srec-forceS3 --srec-len 32 c10lp_gsrd_auto.rpd c10lp_gsrd.flash