|
|||||||||||
Technical Support Support Resources
Product Information |
LX51: Locating Program or Variables to Special AreasInformation in this article applies to:
QUESTIONI am writing an IAP loader and would like to locate it in the first 1024 Bytes of my CODE memory. How can I ensure this? I have tried to use wildcards, but this did not work out, since it collides with interrupt vectors. ANSWERThe best approach is to locate the program code with a USER CLASS. User classes are an extension of the LX51 Linker/Locater (which is available in the PK51 Professional Developer's Kit). For example, you can write the following pragma within the C source files that contain the IAP loader program code:
This userclass directive places the program code of the module to the memory class CODE_IAP. Now you can separately locate this memory class when you enter it in µVision under Project - Options for Target - LX51 Locate - User Class. To locate the IAP code to the first 1KB of your program section enter here.
Note, you have to select the Use Extended Linker LX51 under Project - Options for Target - LX51 Locate - User Class. MORE INFORMATIONSEE ALSO
Last 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.