Keil Logo Arm Logo

Discussion Forum

Using EEPROM and variables in xdata at the same time

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Ali Korhonen
Posted
1-Dec-2000 06:01 GMT
Toolset
C51
New! 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?
Read-Only
Author
Mark Odell
Posted
1-Dec-2000 12:49 GMT
Toolset
C51
New! RE: Using EEPROM and variables in xdata at the same time
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

Next Thread | Thread List | Previous Thread Start a Thread | Settings

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.