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.

TM4C1292NCPDT: I2C working example

Part Number: TM4C1292NCPDT

Hi,

Can I have a working example CCS project of I2C?

The I2C examples given in the TI-RTOS don't seem to be running.

Thanks,

Kiran

  • Hello Kiranjit,

    I don't recall there being an issue with the I2C examples in TI-RTOS. Do you have pull-up resistors installed on your board? Are you using the examples out of the box without modifications?

    We have bare metal examples in TivaWare that could also be tested such as humidity_sht21_simple under [Install Path]\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl-boostxl-senshub

    Best Regards,

    Ralph Jacobi

  • Hello Ralph,

    Can you share a basic simple working I2C example code here on this post?

    I'm not able to get the example codes in running condition.

    Thank you,

    Kiranjit

  • Yes, the pull-up resistors have been installed on I2C lines (SCL, SDA) and trying to use the example code without any modifications

  • Hello Kiranjit,

    I don't have any simpler examples to offer - the one I referenced is as basic as it gets.

    If you can describe how you are testing it the interface, then I can try and give debug guidance. It's hard to guess what you have done to test this so far though. Are you just measuring the I2C pins for a signal and don't see any output?

    Best Regards,

    Ralph Jacobi