Altera_Forum
Honored Contributor
14 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 generates my_fpga.elf I run from the NIOS console: elf2hex my_fpga.elf --width=32 --base=0x0 --end=0x32000 my_fpga.hex I build the FPGA which generates the .sof I create .jic with the .sof I program .jic into the EPCS device. No worky. :( All of the code was working by programming .sof and then using Eclipse to download the .elf. A few words on: elf2hex my_fpga.elf --width=32 --base=0x0 --end=0x32000 my_fpga.hex Width of Onchipmem RAM is 32 in SOPC Base address is 0x0 in SOPC. End address is 0x31FFF in SOPC (I should change 0x32000 to this I believe but Quartus build warning says it truncated anyhow so this should not be an issue). Anything obviously wrong here. Thanks in advance for any feedback, Cos