Forum Discussion

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

postbuild steps in nios IDE?

hello

how to make postbuild actions in niosii ide (v5.1).

i just want to make ihex after each build.

i'm using auto makefile.

thank you

3 Replies

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

    I dont knw how to do it in IDE.

    But you can use nios2-elf-objcopy, add to your Makefile

    nios2-elf-objcopy -O ihex vmlinux vmlinux.hex
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Feb 10 2006, 04:00 PM

    i dont knw how to do it in ide.

    but you can use nios2-elf-objcopy, add to your makefile

    nios2-elf-objcopy -o ihex vmlinux vmlinux.hex

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=12673)</div>

    --- Quote End ---

    i know how to make hex file with nios2-elf-objcopy and elf2hex

    but we are using a autogenerated make file, thats generated each time priror build by IDE.

    do you know where makefile&#39;s teplates are placed?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Try right-click on the project, select "Properties", then "Builders". Click the "New" button to generate a builder. You can specify an executable, probably a batch file as well. When you build the project Eclipse will launch the "Builders" in sequence.

    Hope that helps,

    Andrew