ARM Technical Support Knowledge Articles

RE-USE LIBRARY FUNCTIONS FROM A BOOT APPLICATION

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

I am writing a BOOT code that contains certain library functions. I would like to locate this library functions on specific addresses so that I can re-use them in the application (without the need to duplicate them into each application).

However, all intrinsic library functions of the C51 run-time library share the same segment name ?C?LIB_CODE, which makes it practically impossible to locate them individually using linker directives.

Is there a clever solution to my problem?

ANSWER

Yes, take a look at Application Note 180: Multi-Application Programming for 8051 Devices. This application note contains two files:

The example in the application note implements a jump table that allows modifications of the BOOT part independent of the APPLICATION part. This technique even allows you to update the BOOT section after the APPLICATION has been released.

MORE INFORMATION

SEE ALSO

Article last edited on: 2006-07-05 07:36:31

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