Keil™, An ARM® Company

Technical Support

CX51: LOCATE LIBRARY FUNCTIONS


Information in this article applies to:

  • C51 Version 8.00

QUESTION

I use the Philips 80C51MX architecture. I download code to EEPROM (0xC00000-0xFFFFFF) defined with the ECODE memory class. I also use library functions, but these functions are placed in the CODE memory class (address space 0x800000-0x80FFFF).

How can I link C library code into the EEPROM memory address range?

ANSWER

You may assign the address range of the CODE memory class to any 64KB address space using the LX51 CLASSES Linker directive.

In µVision this is entered under Project — Options — LX51 Locate.

User Classes: CODE (0xC00000-0xC0FFFF)

MORE INFORMATION

  • Refer to CLASSES in the LX51 User's Guide.

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Wednesday, November 15, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure