Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21324 Discussions

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

Altera_Forum
Honored Contributor II
1,789 Views

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.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
856 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
856 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
856 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
856 Views

thanks...........................

0 Kudos
Reply