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

WARNING L6: XDATA SPACE MEMORY OVERLAP

If I wish to declare an absolute variable using _at_, and I wish to declare it in a header file so that it is available to more than one module, I keep getting the SPACE OVERLAP message. How can I solve this?

Parents
  • declare an absolute variable using _at_,

    There's your problem already. The moment you use _at_, what you're writing is no longer a declaration, but a definition. So the "declare in headers, define in .c source" rule applies, telling you that such a definition doesn't belong in a .h file. Put it in a single .c file, and change the .h file back into an actual declaration (no initializer, no _at_).

Reply
  • declare an absolute variable using _at_,

    There's your problem already. The moment you use _at_, what you're writing is no longer a declaration, but a definition. So the "declare in headers, define in .c source" rule applies, telling you that such a definition doesn't belong in a .h file. Put it in a single .c file, and change the .h file back into an actual declaration (no initializer, no _at_).

Children