This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/AM5716: Automatically Linking Libraries using XDC

Part Number: AM5716


Tool/software: TI-RTOS

Due to the benefits provided by XDC tools and RTSC configuration, I'm attempting to migrate included libraries in a RTSC project from a manually created linker file to the autogenerated linker file.  When the module is added in the .cfg file, the library is conveniently added to the top of the autogenerated linker file so it no longer needs to be included in the manual file.  However, I can't find a way to place the library into a memory section in the autogenerated file.  Is there be some way to do this, either in the XDC script or otherwise?

Ideally I'd like to set it up that including the module automatically allocates it to a default memory section in addition to linking in the corresponding library (which it already does).

e.g.

var GPIO = xdc.useModule('ti.drv.gpio.Settings');

would generate

-l"C:\ti\am57x_packages\pdk_am57xx_1_0_5\packages\ti\drv\gpio\lib\c66\release\ti.drv.gpio.ae66"  // Happens already
...

SECTIONS
{
    ...
    C:\ti\am57x_packages\pdk_am57xx_1_0_5\packages\ti\drv\gpio\lib\am571x\c66\release\ti.drv.gpio.ae66 > L2SRAM  // How do I make this happen?
    ...
}