C18 --> change rom data

Status
Not open for further replies.

brahs

New Member
how to change ROM data ;
used :

void WriteStopRomString(unsigned char stopIndex, unsigned char symbol, unsigned char lcdAddr, unsigned char command)
{

char byte;
unsigned char i;
unsigned int index;
rom char *ptr;
ram char *ram_ptr;

*ram_ptr = symbol;
ptr = &stopsRomString[0];
byte = *ptr;

strcpyram2pgm(ptr, ram_ptr);
}

but doesn't work...
any idea??
 
The C18 compiler will produce the code as if the ROM was ram but will not do the actual write to ROM. You have to write your own write code.

Mike.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…