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.

I2C example for LANCHXL-CC2640R2

Other Parts Discussed in Thread: CC2640R2F, CC2650

Hello,

Could you please let me know which example is good in order to undertand how to build the I2C interface in Lanchxl-CC2640R2? I use the existed driver but I face many problems. Any help for someone who has managed to write/read in I2C of CC2640R2? 

Thank youin advance

  • The drivers should work the same for both the CC2650 and CC2640R2F. I would just look at how the I2C is implemented in the sensortag project in the v2.2.1 SDK release.

    Best wishes

  • Thank you very much for your prompt response. It is not the same! Unfortunately, there are some differences. My code works very well but in the I2C, I cannot see any signal at SDA and SCL. If anyone has worked on it, any guideline would very helpful for me.

    Kind regards,
  • Have you also looked at the TI drivers usage documentation in the latest SDK:
    file:///C:/ti/simplelink_cc2640r2_sdk_1_30_00_25/docs/tidrivers/doxygen/html/_i2_c_8h.html

    Best wishes
  • Thank you very much for your help!

    Indeed, I include the files in the application SimpleBLEPeripheral.c file. Is there any possibility the problem to be due to the fact that I didn't insert special folder "I2C" in the "Drivers" folder?

    Please give me a simple example for CCS with I2C? Also, only the "simplelink_cc2640r2_sdk_1_00_00_22" stack is available here: http://www.ti.com/tool/BLe-Stack

    Thank you in advance,

  • Hi, 

    There is I2C example for CCS in Resource Explorer:

    For the i2ctmp007 project: SDK->Examples->Development Tools->CC2640R2 LaunchPad -> TI Drivers->i2ctmp007

    For SLA: SDK -> SimpleLink Academy -> Bluetooth LE -> Bluetooth Low Energy + Sensors BoosterPack

    Best wishes

  • Dear Zahid,

    Should I change the library of SensorI2C acccording to CC2540r2? For example to change the Semaphore to Event, etc...?
    The Resource Explores leads me to SDK->Examples->Development Tools->CC2640R2 LaunchPad -> TI Drivers-
    Thank you,