MSPM0L1306: No TI Driver library configuration in SysConfig 1.23.1+4034?

Part Number: MSPM0L1306
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

I spent the past couple of days tracking down a memory corruption issue - I narrowed it down to cstdlib snprintf(). So after some digging, I found that TI created their own implementations in the DPL library, so I manually linked in that library, ti//kernel/nortos/lib/gcc/m0p/nortos_mspm0l11xx_l13xx.a, started using SystemP_snprintf(), and voilia, problem disappeared! Makes sense why TI generated their own. OK, so now my question is, can I have that automatically linked in via SysConfig without having to manually add the -L and -l to my makefile? Having to hardcode it breaks a bit of the modularity. I thought that checking the 'TI Drivers' checkbox in SysConfig would do it, but that seems to add the `ti/drivers/lib/gcc/m0p/drivers_mspm0l11xx_l13xx.a` library, which is not the same. Am I missing something or is there some way in SysConfig to have it include the nortos kernel library? Thanks

  • Hi Legare,

    Sorry about the inconvenience. I am submitting a ticket with the software team to look into this for you. I will provide you with an update as soon as possible.

    Best,

    Owen

  • Thank you, Owen.

  • Hi Legare,

    I'm hoping to have an answer by early next week and I'll get back to you then.

    Best,

    Owen

  • Hi Legare,

    I heard back from the software team and I was informed that the TI drivers only support the RTOS version, which would explain why the path is ti/drivers/lib/<compiler>/m0p/drivers_mspm0<device family>.a

    Best,

    Owen

  • That still doesnt really answer the question nor align, because the library I am talking about, if there is an RTOS, is ti/kernel/freertos/lib/gcc/m0p/nortos_mspm0l11xx_l13xx.a, if I am not using an rtos, like on my project, then the library I need is ti/kernel/nortos/lib/gcc/m0p/nortos_mspm0l11xx_l13xx.a, and neither of those are in the ti/drivers/ path?

    Is there a way in SysConfig to inform the build system that I need to be including this 'kernel' library?

  • Hi Legare,

    There is currently no way to include this path using SysConfig. However, you can add the path in the project settings:

    1. Right-click on your project in CCS in the Explorer
    2. Click on Properties...
    3. Expand the Arm Linker Tab
    4. Click on File Path Search
    5. In the box at the top of the window (Include library file or command file as input) click on the plus icon
    6. In the window that pops up, paste this line: ${COM_TI_MSPM0_SDK_INSTALL_DIR}/kernel/nortos/lib/<compiler>/m0p/<nortos_mspm0device_family>.a, where the <compiler> and <nortos_mspm0device_family> correspond to what your project is using

    The library should now be linked to use the library within the kernel folder. To clarify my previous response, the TI Drivers button doesn't currently support including the nortos versions. I have submitted a ticket to add the same functionality for the nortos version.

    Best,

    Owen