Forum Discussion
Altera_Forum
Honored Contributor
16 years agoelf2flash onchip RAM
Hi! I'm working on trying to get a simple Hello World application on Nios II to boot from onchip RAM. I'm using a custom board with an Stratix IV FPGA. In SOPC I added an Nios core ,JTAG UART a...
Altera_Forum
Honored Contributor
16 years agoFor my applications using internal ram as the boot memory for NIOS the command I use is:
elf2hex --base=0x00 --end=0x3fff --width=32 --little-endian-mem --no-zero-fill --input=elf_file.elf --output=your_onchip_mem.hex The base and end values must be the address range your source actually compiles in. Mine is assembly so I control it closely. This basic method has worked for applications in Stratix2 and Cyclone3 (I had to go back and look at my notes).