We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello, I'm working on XC164CM. I'd like to store code in RAM, not in flash memory.
The code is simple :
#pragma RENAMECLASS (FCODE=RAMPROG) void CallProgRam(void) { int i; for(i=0; i<666; i++); }
where the classes' range are: FCODE (0xC02200-0xC0FFFF), RAMPROG (0x00F600-0x00FDFF),
when I compiling the code, the CallProgRam is located in 00FACCH
00FACCH CallProgRam LABEL --- RAMPRO ?PR?PROGG
The problem that I found is when I'd like to load the program in target I've that message : No algorithme found for adress 0x00FACC.
There's any body can help me
Thanks.
Application note 138 explains how to link code to FLASH then copy and execute it in RAM.
http://www.keil.com/appnotes/docs/apnt_138.asp