Forum Discussion
Altera_Forum
Honored Contributor
21 years agosoftware (.elf) in onchip memory?
I'm using a custom board with an EP1C12 a flash, and a SDRAM module.
I'm getting problems with the sdram module (seems that after download the elf via usb blaster to the sdram, the sdram gets corrupted). Is it possible to download the .elf to the onchip memory (instead of sdram or flash)? How can I set the reset address to the starting of the on chip memory? Thanks in advance, Marco2 Replies
- Altera_Forum
Honored Contributor
Hi Macro,
I do not understand what you actually want to do. Since you have a flash in you custom board, why not use it to store both .sof and .elf image? The reset address can be set to the start address which .elf is stored in flash. I think, the real problem to you, is to set on-chip memory as running space of software due to error of sdram. This can be done in Nios II IDE, you can edit the system library property, link your elf to on-chip rom instead of sdram or ext_ram. Hope this helps a bit. Seu_xugh http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif - Altera_Forum
Honored Contributor
thank you Seu_xugh,
this is exactly what I need. I successfully compiled a small program that entirely runs on the onchip memory and now I'm able to make write/verify tests on the sdram. Cheers, Marco