<Error message>
critical: elf2flash: Read error: File not found: /mnt/c/intelFPGA_pro/19.3/nios2eds/components/altera_nios2/boot_loader_cfi.srec
1 28, 2020 10:39:52 PM com.altera.commandApplication.CmdApp severe
severe: elf2flash: Error reading boot copier
1 28, 2020 10:39:52 PM com.altera. CommandApplication.CmdApp severe
severe: elf2flash: Error generating Flash file, exiting
This error is a problem with the tool.
It has been confirmed to occur in Nios® II SBT since ver19.2 Pro Ediiton and ver19.1 Standard Edition.
The following workaround is available.
<Workaround>
(1) Run mem_init once and confirm the command
(2) Store "boot_loader_cfi.srec" in the application folder
(3) Copy the confirmed command, modify the --boot option, and run it with Nios II Comannd Shell and execute it
As shown in the command example below, it is in the application folder, so modify it to specify only the file name
(From Nios® II SBT, you can start the application by right-clicking on it, with it moved to the working direc- tory)
Command example
alt-file-convert.exe -I elf32-littlenios2 -O hex --input=mem_test.elf --output=mem_init/epcq_controller2_0.hex --base=0x02000000 -- end=0x03ffffff --reset=0x02050000 --out-data-width=8 --boot="boot_loader_cfi.srec"
(4) In the mem_init folder, epcq_controller2_0.hex is generated.
--------------------
Category: Nios® II
Tools: Nios® II EDS
Device: -