User Profile
User Widgets
Contributions
Getting Error - While Generate the HEX File form .ELF
Hi, I'm using the windows machine - Quartus (Quartus Prime 21.1) Lite Edition. I'm getting an error when trying to convert .elf to a .hex file. rajesh@rajesh:/mnt/e/project-1/src$ alt-file-convert.exe -I elf32-littlenios2 -O hex --input=pfr_app.elf --output=pfr_code.hex --base=0x00140000 --end=0x0018bfff --reset=0x00140000 --out-data-width=8 --boot="/mnt/C/intelFPGA_lite/21.1/nios2eds/components/altera_nios2/boot_loader_cfi.srec" Converting Nios II ELF file to HEX file. Appending boot file. 16 Sep, 2022 10:27:06 AM - (SEVERE) elf2flash: Read error: File not found: /mnt/C/intelFPGA_lite/21.1/nios2eds/components/altera_nios2/boot_loader_cfi.srec 16 Sep, 2022 10:27:06 AM - (SEVERE) elf2flash: Error reading boot copier 16 Sep, 2022 10:27:06 AM - (SEVERE) elf2flash: Error generating Flash file, exiting ERROR! Unhandled alt-file-convert exception: [WinError 2] The system cannot find the file specified. I read the following link and tried it. https://www.intel.com/content/www/us/en/support/programmable/articles/000086355.html?wapkw=alt-file-convert I copy the boot_loader_cfi.srec file to the project directory and but still not solved. rajesh@rajesh:/mnt/e/project-1/src$ alt-file-convert.exe -I elf32-littlenios2 -O hex --input=pfr_app.elf --output=pfr_code.hex --base=0x00140000 --end=0x0018bfff --reset=0x00140000 --out-data-width=8 --boot=boot_loader_cfi.srec Converting Nios II ELF file to HEX file. Appending boot file. ERROR! Unhandled alt-file-convert exception: [WinError 2] The system cannot find the file specified Thanks Rajesh M1.1KViews0likes3CommentsRe: BSP Editor fails to generate files
Hi @MV , I solved this error for me. This is due to Python installed alone with SoC EDS. This python trying to access a package. but that is not available in it . To solve this error, we have to remove this python and download latest python then install it in that same folder. please reply me if it is working for you. I'm using 1. Quartus-lite-20.1.0.711-windows 2. SoCEDSSetup-20.1.0.711-windows Steps 1. go to Folder Path - C:\intelFPGA_lite\20.1\embedded\host_tools\python and remove all the content in side the folder. 2. Download "python-3.9.1-amd64" and install it in the same folder path C:\intelFPGA_lite\20.1\embedded\host_tools\python Thanks Rajesh M6.6KViews3likes4Comments