Forum Discussion

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

Linker Question: How to make a HEX file?

Using the linker, I end up with a .out file. I need to make either a HEX file (Intel format) or a binary image that can be used by a Flash programmer.

John

1 Reply

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

    John,

    > I need to make either a HEX file (Intel format)

    nios2-elf-objcopy -O ihex --gap-fill=0xff a.out a.ihex

    > or a binary image that can be used by a Flash programmer.

    nios2-elf-objcopy --gap-fill=0xff -O binary a.out a.bin

    Regards,

    --Scott