Question
Place a static library in specified memory region and mapped to the absolute memory ad
I have an STM32 CubeIDE project.
I want to place a static library in an absolute memory address in the upper part of the internal flash while the application code will be placed at the beginning of the flash.
But the content of the library is allocated under the text region with the application code
I did this in the linker script:
MEMORY
{
ROM (rx) : ORIGIN = 0x08000000, LENGTH = 244K
LIB_region (rx) : ORIGIN = 0x0803D000, LENGTH = 4K
RAM1 (xrw) : ORIGIN = 0x20000000, LENGTH = 32K
RAM2 (xrw) : ORIGIN = 0x20009000, LENGTH = 28K
}
...
my_lib_section :
{
*(libTestLib.a)
} > LIB_region