| ||||||||
Technical Support Support Resources Product Information | C51: EXTERN DECLARATIONS USING _AT_Information in this article applies to:
SYMPTOMSI receive the following error messages in my linker MAP file when I include an external declaration for physically located variables:
* * * * * * * C O D E M E M O R Y * * * * * * *
CODE 0000H 2000H ABSOLUTE
* OVERLAP * CODE 0000H 2000H ABSOLUTE
* OVERLAP * CODE 0000H 2000H ABSOLUTE
* OVERLAP * CODE 0000H 2000H ABSOLUTE
* OVERLAP * CODE 0000H 2000H ABSOLUTE
* OVERLAP * CODE 0000H 2000H ABSOLUTE
* OVERLAP * CODE 0000H 2000H ABSOLUTE
* OVERLAP * CODE 0000H 2000H ABSOLUTE
* OVERLAP * CODE 0000H 0003H ABSOLUTE
* OVERLAP * CODE 000BH 0003H ABSOLUTE
* OVERLAP * CODE 0013H 0003H ABSOLUTE
* OVERLAP * CODE 0023H 0003H ABSOLUTE
* OVERLAP * CODE 0033H 0003H ABSOLUTE
CODE 2000H 2000H ABSOLUTE
My extern declaration is defined as follows: extern code char FLASH_BUFFER [0x800] _at_ 0x2000; What's going on here? CAUSEExtern definitions for physically located variables must not include the _at_ keyword. RESOLUTIONChange your extern definitions to appear as follows (without the _at_): extern code char FLASH_BUFFER [0x800]; MORE INFORMATION
Last Reviewed: Wednesday, August 03, 2005 | |||||||
| ||||||||