B brahs New Member Jun 13, 2010 #1 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??
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??
P Pommie Well-Known Member Most Helpful Member Jun 13, 2010 #2 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.
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.