Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

Back
Top