Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12748 Discussions

software (.elf) in onchip memory?

Altera_Forum
Honored Contributor II
1,120 Views

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, 

Marco
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
415 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
415 Views

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&#39;m able to make write/verify tests on the sdram. 

Cheers, 

Marco
0 Kudos
Reply