Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,188 Views

Combining .elf and .sof files

How can I put a large .elf Nios program into a .sof file? When I convert to .hex using elf2hex, it tells me it is too large for a hex file. 

 

I need to have a way for production computers to program the flash with just the Quartus programmer. I can't install the Nios EDS on production computers. 

 

I am using active parallel so there is no EPCS device, which is what most of the examples use. I have a bootloader that will load a program from flash at a certain address, but I don't know how to get the elf into the flash. 

 

The size of the executable is about 4 KB.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
57 Views

FYI I did this by modifying the make_flash_image_script.sh that comes with the advanced boot loader. I changed the nios2-elf-objcopy command so that the output was ihex, then loaded that into the Quartus convert programming files tool.