Hi Anish,
Please try the following in order to relocate a library in MCUXpresso.
First you need to be able to modify linker script.

Then you add the following to the linker script.
.text : ALIGN(8)
{
*(EXCLUDE_FILE(*library.o) .text*)
*(EXCLUDE_FILE(*library.o) .rodata)
*(EXCLUDE_FILE(*library.o).rodata.*)
*(EXCLUDE_FILE(*library.o).constdata)
*(EXCLUDE_FILE(*library.o).constdata.*)
. = ALIGN(8);
} > PROGRAM_FLASH
.text_Flash2 : ALIGN(8)
{
*library.o(.text*)
*library.o(.rodata .rodata.* .constdata .constdata.*)
. = ALIGN(8);
} > PROGRAM_FLASH_512
I hope this helps.
Best regards,
Felipe
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------