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

Using EEPROM and variables in xdata at the same time

I'm using P89C51RC+ microcontroller. I need to use large memory model(big variables) but while accessing eeprom (in xdtata) program hangs due to variable "overwriting" in xdata. How can I place variables to xdata and still use eeprom?

  • I'm using P89C51RC+ microcontroller. I need to use large memory model(big variables)

    You should still use the small data model and explicitly allocate large objects by using the xdata keyword. In 12 years I've yet to use anything but the small model.

    but while accessing eeprom (in xdtata) program hangs due to variable "overwriting" in xdata. How can I place variables to xdata and still use eeprom?

    What kind of EEPROM? Do you mean the overlay feature is re-using addresses you don't want it to? If so, read up about how to exclude modules from overlay analysis.

    - Mark