Nios II EDS: mem_init_generate failing
Hi,
Yesterday I was able to generate a .hex file for my onchip flash memory contents, but today when I run the mem_init_generate make target it's giving me an error.
Here is the console output:
wsl make mem_init_generate
Info: Building /mnt/e/repos/Vx834_LRF/FPGA/TestBoard/software/Vx834_LRF_bsp/
make --no-print-directory -C /mnt/e/repos/Vx834_LRF/FPGA/TestBoard/software/Vx834_LRF_bsp/
[BSP build complete]
Post-processing to create mem_init/onchip_flash_0.hex...
alt-file-convert.exe -I elf32-littlenios2 -O hex --input=Vx834_LRF.elf --output=mem_init/onchip_flash_0.hex --base=0x00020000 --end=0x0003c7ff --reset=0x00020000 --out-data-width=8 --boot="/mnt/e/intelfpga_lite/19.1/nios2eds/components/altera_nios2/boot_loader_cfi.srec"
Apr 9, 2020 11:41:43 AM - (SEVERE) elf2flash: Read error: File not found: /mnt/e/intelfpga_lite/19.1/nios2eds/components/altera_nios2/boot_loader_cfi.srec
Apr 9, 2020 11:41:43 AM - (SEVERE) elf2flash: Error reading boot copier
Apr 9, 2020 11:41:43 AM - (SEVERE) elf2flash: Error generating Flash file, exiting
nios2-elf-objcopy: 'C:\Users\devin\AppData\Local\Temp\tmp3_iay72c': No such file
Converting Nios II ELF file to HEX file. Appending boot file.
Post-processing to create onchip_flash_0.flash...
elf2flash.exe --input=Vx834_LRF.elf --output=onchip_flash_0.flash --sim_optimize=0 --base=0x00020000 --end=0x0003c7ff --reset=0x00020000 --boot="/mnt/e/intelfpga_lite/19.1/nios2eds/components/altera_nios2/boot_loader_cfi.srec"
Apr 9, 2020 11:41:43 AM - (SEVERE) elf2flash: Read error: File not found: /mnt/e/intelfpga_lite/19.1/nios2eds/components/altera_nios2/boot_loader_cfi.srec
Apr 9, 2020 11:41:43 AM - (SEVERE) elf2flash: Error reading boot copier
Apr 9, 2020 11:41:43 AM - (SEVERE) elf2flash: Error generating Flash file, exiting
make: *** [onchip_flash_0.flash] Error 5
/mnt/e/repos/Vx834_LRF/FPGA/TestBoard/software/Vx834_LRF_bsp/mem_init.mk:359: recipe for target 'onchip_flash_0.flash' failed
elf2flash is throwing an error saying that "boot_loader_cfi.srec" can't be found, but the file exists in the specified directory. If I open wsl and enter the directory as specified, I can see the file just fine.
I googled various permutations of the error message. The only thing I found that was matching was something from ~2009, applicable to the first gen Nios processor, saying you need to run the SOPC Builder, but I don't think this is applicable here.
Any idea what is going on?
-Devin