--- Quote Start ---
originally posted by rppolicy@Sep 23 2004, 12:21 PM
i was able to boot a nios2 from a program residing in on chip ram on a cyclone 1c3. heres what i did:
1) use legacy on-chip ram in the sopc builder.
2) select sdk. don't know if you had to do this or not. the ide/hal probably works.
3) in sopc: have the reset vector pointing to your ram device. i used the defaults that sopc gave me and it worked fine. if you select sdk, have the program and data memory pointed correctly.
4) the first time you build sopc, have the on-chip ram blank.
5) after sopc, write your program.
6) heres the biggie: when you compile, use the -b option and use the base address of your on-chip ram.
for example: nios2-build -b 0x1000 -os -o main main.c etime.c. don't know why, but the -b is important. if you are using ide/hal, don't know what you need to do to set the -b option.
7) once you have your .srec, go back to sopc and under the contents tab, select the build option and point to your .srec (not .c).
8) finish your design with quartus.
i know this looks clunky, but i found that it has worked quite well over the past month.
hope this helps,
rick --- Quote End ---
Hi Rick,
thanks for your reply.
I tried your way. But I have one big problem. Because of the length of my program I have to use the M-RAM-Block in my Stratix. So far so good.
Now tells me Quartus/SPOC-Builder that I have to leave the memory blank. Don't know why. How should I initialize the memory when I must leave it blank????
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/unsure.gif
Regards
Jens
PS: Sorry for my bad english.