Forum Discussion
Altera_Forum
Honored Contributor
15 years agoReduce size of hex file to fit into on chip memory
Hi hex file produced by Nios II IDE for my application is more than the onchip memory that I have. I want to reduce the size of that. I am using the blank project in Nios II IDE and adding my .pt...
Altera_Forum
Honored Contributor
15 years agoHex files are in a text format: you can read them with any editor like Windows Notepad. Each couple of bytes in the files, encodes one single byte in memory.
Then, your 240kB hex files describes a maximum of 120kB of memory bytes. But since every line of hex file also contains information about memory address, line length and check sum, I think you'll get exactly 100kb. Go here for detailed information: http://en.wikipedia.org/wiki/intel_hex