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.

MSPM0G3507: issue while using i2c api

Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

Hi 

I am using posix_demo_LP_MSPM0G3507_freertos_ticlang from SDK of mspmog3507. for Freetos based development. and i interfaced one i2c based sensor in it. but I tried to use i2c Api from ti/drivers/I2C.h but still give me error of unresolved symbol even if I have added that file in project. please tell me how can i use driver files in posix demo example?

  • Hi Mehul,

    Is there a reason you are opting to use the TI drivers instead of the MSP specific driverlib drivers? These are found under [SDK Install Path]\mspm0_sdk_1_30_00_03\source\ti\driverlib. These are included in the project automatically when you add the I2C peripheral using the Sysconfig tool.

    If you do need to use the TI Drivers versions, it is likely just that you are not including them correctly for each source file in your project. Are you only using the TI Driver calls in one source file, or multiple? The source needs to be included for all of the files with references.

  • I am using TI Driver calls in single file only. I developed bareMatel code with this drivers. and now I want to integrate this code with freertos base code which I developed using posix_demo_LP_MSPM0G3507_freertos_ticlang demo code.

  • If you are only making calls to these functions in a single file, you should just be able to #include "I2C.h" to correctly reference the file. In your project properties do you also include the TI Driver library? It would not be included by default. You can do this by going to the project properties, going to the Build->Arm Linker->File Search Path tab. Then you'll need to add a new element under the "Include library file or command file as input", so click the paper with a green plus icon (Add...), then select the .a driver library file for mspm0g3507, which is located at [SDK Install Path]\mspm0_sdk_2_00_00_03\source\ti\drivers\lib\ticlang\m0p\drivers_mspm0g1x0x_g3x0x.a. Then click ok, and the path should appear in the list. Click apply and close, then you should be able to build the project.