Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Option to skip elf2hex?

Is there such on option?

It would help tremendously. I have two builds, one of which I run in SRAM, the other runs in onchip-ROM. Every time I do the SRAM-code build it overwrites the onchip-ROM HEX file, filling it with zeroes. This is a pain; as I do PLD updates I have to make sure I perform a rebuild of the on-chip-code in order to make sure the HEX files are OK.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I don&#39;t know the answer but how about setting the hex file to read only? I&#39;ve run into this problem in the past when I had a pre-initialized lookup table that Nios could access but I didn&#39;t have the compiler pre-populate. I&#39;d tell you what I did (since you have a very similar case) but I can seem to remember (I must be getting old and the brain isn&#39;t what it used to be http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif )