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

eeprom data initialization

Hi,

Is there any way to initialize EEPROM data except during running time ?

Regards,

Andre

Parents
  • The latest examples included with the C51 installation show how to use the XDATA banking capabilities to enable you to locate 'C' variables in serial EEPROM.
    See also http://www.keil.com/forum/docs/thread1754.asp

    Having implemented that support, I don't see why you shouldn't then be able to use normal 'C' initialisers with those variables.

    However, note that the compiler would still have to store the initialisers in the CODE space (ROM) and would copy them into the EEPROM each time your application (re)booted.
    This doesn't sound like an appropriate approach for EEPROM - using a device programmer, or a special programming/initialisation mode sounds much more sensible. You could probably incorporate it as part of your unit's final test?

Reply
  • The latest examples included with the C51 installation show how to use the XDATA banking capabilities to enable you to locate 'C' variables in serial EEPROM.
    See also http://www.keil.com/forum/docs/thread1754.asp

    Having implemented that support, I don't see why you shouldn't then be able to use normal 'C' initialisers with those variables.

    However, note that the compiler would still have to store the initialisers in the CODE space (ROM) and would copy them into the EEPROM each time your application (re)booted.
    This doesn't sound like an appropriate approach for EEPROM - using a device programmer, or a special programming/initialisation mode sounds much more sensible. You could probably incorporate it as part of your unit's final test?

Children
No data