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

XDATA SPACE MEMORY OVERLAP

I am specifying some absolute addressed variables in the XDATA space using the _at_ keyword. I am pretty sure not more than 1 variable accesses the same location. I am able to compile my project, however, I get this L6:XDATA SPACE MEMORY OVERLAP warning.
It does not specify where the overlap occurs, and I'm not sure if this is a huge problem or not.
Help?

Parents
  • Be sure you're not defining these variables in a header file. If you define a variable like so:

    int xdata myVar _at_ 0x1000;

    in a header file which is included by more than one source file, you're effectively declaring multiple vars at the same address. If that is your problem, move the above declaration to a seperate .C source file and use EXTERN in your header.

    DL

Reply
  • Be sure you're not defining these variables in a header file. If you define a variable like so:

    int xdata myVar _at_ 0x1000;

    in a header file which is included by more than one source file, you're effectively declaring multiple vars at the same address. If that is your problem, move the above declaration to a seperate .C source file and use EXTERN in your header.

    DL

Children