This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Store code in RAM

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.

0