|
|||||||||||
Technical Support Support Resources
Product Information |
C51: re-use Library Functions from a Boot ApplicationInformation in this article applies to:
QUESTIONI am writing a BOOT code that contains certain library functions. I want 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 smart solution to my problem? ANSWERYes, 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 INFORMATIONSEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.