I need to keep a critical variable in CODE space (target: c8051F320). What is the easiest way for updating it in C.
"...write to the address in xdata that corresponds to the proper place in code..." If the CODE space has Flash, you will also have to follow the flash-programming procedure - including any erase requirements... Doesn't the c8051F320 have EEPROM?
Yes, the CODE has flash. What is the programming procedure?
Yes, the CODE has flash. What is the programming procedure? varies from chip to chip, read the datasheet. (oops, sorry) Erik
Thank you all. I go it.