Dear All,
I'm using LPC11U14 with Keil. In the project setting, I enabled the "Use MicroLIB" option. I review the map file after compiled and noted that the MicroLIB code are put after my application code, e.g.:
.text 0x000065b0 Section 0 uidiv.o(.text) .text 0x000065dc Section 0 memcpya.o(.text) .text 0x00006600 Section 0 uread4.o(.text) .text 0x00006614 Section 0 uwrite4.o(.text)
(I guess the above are the MicroLIB code)
Is there any method that I can put these code in a defined address? Thank you very much.
wsyuen.
I hope this applies to microlib as well as the C standard library. In your scatter file:
RW_RAM2 0xA0100000 0x10000 { *armlib* (+RO) }
This example uses an execution region in external RAM but it should still be easy to change for your application.
I don't have a scatter file in the "Linker" page of the "Configure Flash Tools". Please advise how to add it? Thank you.
You need to read the linker user manual so you can work with these things. Go to "options for target", linker tab, uncheck "use memory layout from target dialog" and click the "edit" button to load the file for manual adjustments.
It works!! Thank you very much, Michael.