Forum Discussion

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

is this possible to program elf file in flash without souce code

hello all,

it this possible to program flash used for storing elf file in nios ii without main source code.that mean i want give only executable file not souce code for programming.

4 Replies

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

    yes you only need the binary file to program the flash, you don't need to provide the source code. The .elf file is all you need.

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

    Thanks 4 reply ...............

    can u give me some reference manual 4 programming flash through bin file also how to convert elf file to bin file.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    elf2flash and nios2-flash-programmer are the command line tools that you need to become familiar with. They are both covered, adequately, in the nios ii flash programmer user guide (http://www.altera.com/literature/ug/ug_nios2_flash_programmer.pdf).

    There are also analogous commands for creating "flash" files (SRECs) for binary files (bin2flash) and SOFs (sof2flash).

    Cheers,

    slacker