Forum Discussion
Altera_Forum
Honored Contributor
15 years agoCreating sof with NIOS code embedded
So, as title suggests, I have a NIOS system generated with SOPC and NIOS runs from Onchipmem RAM with memory init file my_fpga.hex. I generate the SOPC system. I build the NIOS code which g...
Altera_Forum
Honored Contributor
15 years agoThe attached hex file contains all zero data which is obviously wrong.
If you are used the Altera SBT tools to generate your make files, you should be able to just run "make mem_init_install" to automatically generate the appropriate hex file. I think the main problem with your manual attempt is specifying the wrong base address in your elf2hex command line. The code looks like it starts at 0x11000000 in you ELF file, not 0x0 which you specified in your elf2hex command line.