Altera_Forum
Honored Contributor
12 years agoHex to Mif file converter for LM32 Hex files
I have ported the LatticeMico32 to an Altera Cyclone. I have a 8K x 32 memory but the hex file I have has 4 words per line and I get the following line while trying to compile in quartus II 13.1
Warning (113009): Data at line (1) of memory initialization file "yo.hex" is too wide to fit in one memory word. Wrapping data to subsequent addresses. The program used to generate the hex file, lm32-objcopy.exe does not have an option to make less than 4 32-bit words per line. Does altera have any tools that could convert the files to the right format or mif file? I tried the elf2mif program but it doesn't seem to be working on cygwin nor my elf files..is it only for NIOS elf files? Salman