NGord
Occasional Contributor
1 year agoNiosV
Hi I am in the process of converting a MAX10 Nios2 design to a MAX10 NiosV. It boots from Flash loaded into DDR All is good with the compiling apart from I need to convert the elf file to a hex fi...
Hi
Could you try the command below:
nios2-elf-objcopy -O ihex file.elf output_file.hex
Regards
Jingyang, Teh
nios2-elf-objcopy is not recognised by niosv command shell.
Moreover I got elf2flash to create a hexfile but when I use 'convert programming file' in Quartus to create a pof file for qspi programming , I discover that the hexfile isnt Intel format which it meeds to be for it to work!
So I reiterate:
What is the NiosV equivalent of the Nios2 command?:
alt-file-convert.exe -I elf32-littlenios2 -O hex --input=app.elf --output=mem_init/ext_flash.hex --base=0x44000000 --end=0x45ffffff --reset=0x44430000 --out-data-width=8 --boot="C:\intelfpga_lite\23.1std\nios2eds\components\altera_nios2\boot_loader_cfi.srec"
It seems elf2flash creates an s-record file which is no good .
I need an equivalent for alt-file-convert.exe which created an Intel hex file!!!
I think I can use a 3rd party hex editor to convert between s-records and Intel Hex though, I can try that.
elf2hex creates an Intel hex file but doesnt allow a bootloader to be added, although the command line doesnt complain when I add it!
I tried it and it created a file 78MB which is an order of magnitude bigger than it should be.
It seems to me Nios V toolset isnt ready for me to replace Nios II .
Moreover Platform designer in the Pro version of Quartus has a BSP editor. Thats all very well but Quartus Pro doesnt support MAX10!!