Tool/software: Code Composer Studio
Hello,
NOTE: Please ignore part number in the post, this issue was seen on a product yet to be PG'ed.
During validation of security module we had a requirement to map the same .library to two different memory zones in SRAM. Used something like below. lib_Z1 gets mapped as expected, but for lib_z2 only partial mapping is done. As the sub-functions are common among both libraries, linker optimizes it.
how can we force the linker to map both libraries fully in both memory zones. this is needed because once security is enabled each zone will need its full copy of library.
flashapi1 : >> RAMGS8 | RAMGS9, PAGE = 1
{ lib_Z1.lib(.text)
lib__Z1.lib(.econst)
lib__Z1.lib(.cinit)
lib__Z1.lib(.ebss)
}
flashapi2 : >> RAMGS4 | RAMGS5, PAGE = 1
{
lib__Z2.lib(.text)
lib__Z2.lib(.econst)
lib__Z2.lib(.cinit)
lib__Z2.lib(.ebss)
}
Best Regards,
-PrashJ