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.

MSPM0L1228: Using driver library and driverlib together (for different peripherals)

Part Number: MSPM0L1228
Other Parts Discussed in Thread: SYSCONFIG,

Tool/software:

Hello all,

I'm working on a project where I want to use the driver library for I2C (without RTOS). I included the ti/drivers/I2C.h file. During link time the error "10234-D: unresolved symbols remain" occurs and (with the -v linker option) it indicates I2C_config and I2C_count (from drivers/i2c/I2CMSPM0.o) are missing. 

In the freertos I2C controller and target examples these missing symbols are defined in the ti_drivers_config.c and .h files. 

How can I generate these files using CCS20.1? The sysconfig only generates ti_msp_dl_config.c and ti_msp_dl_config.h.

When I try to create a new project for an MSPM0L1228 device only an empty_mspm0l1228 project using DriverLib can be selected. How can a new project using the drivers be generated? 

Best regards,

Wim

  • Hi,

    I think you need to include the ti/driverlib/dl_I2C.h instead of ti/drivers/I2C.h

    Best regards,

    Cash Hao

  • I'd like to use the callback functionality of the drivers I2C library, as it is not available in the driverlib library.

    The drivers library is used in the i2c_controller and i2c_target examples for freertos. Can this library also be used without RTOS? How are the ti_drivers_config.[ch] files created?

    Best regards,

    Wim

  • Hi Wim,

    I checked with team, the ti_drivers_config should be generate by Sysconfig. However, for current sysconfig version, it does not support ROTS projects yet. So, you will have to define those files by you. 

    If you want to use the callback functionality of the drivers I2C library. I would suggest to migrate that function into a non ROTS project. 

    Best regards,

    Cash Hao