|
|||||||||||
Technical Support Support Resources
Product Information |
BL51: Locating Individual Segments While Using Start AddressInformation in this article applies to:
PROBLEMI wish to locate all my functions at 8000H upwards in code memory except for the main function, which I wish to locate at 100H. How do I do this? RESOLUTIONThis may be achieved using the CODE directive for the BL51 Code Banking Linker/Locator. Details of the directive may be found in the "Linking Programs" - "Directives" section of the BL51 Users Guide. The following is an example of calling BL51 using the command line to solve the problem:
This will locate the main function at 100H, and all the other functions and segments from 8000H upwards in code memory. To set the CODE directive in µVision, first choose BL51 Code Banking Linker... from the Options menu. Click on the Segments tab. In the Code box enter the parameters of the CODE directive. For example:
The command line argument appears in the box at the bottom of the window. Click on the OK button. MORE INFORMATION
SEE 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.