ARM Technical Support Knowledge Articles

LOCATE LIBRARY FUNCTIONS

Applies to: CX51 C Compiler

Answer


Information in this article applies to:


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

SEE ALSO

Article last edited on: 2006-11-15 17:46:15

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential