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.

CCS/TMS570LC4357: TMS570LC4357: I2C Issue!!!

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

I'm attempting to interface my TMS570LC4357 to a CAV26C24 via I2C. I followed the I2C example(example_i2cMaster_TX_RX.c) of the HALCoGen(v04.06.00), but I2C does not work.

Can I get relevant examples or advice? I tried the I2C example of the HALCoGen on TMS570LC43 EVM board, I2C waveform does not come out(SDA, SCL) and it's still here "while ((i2c->STR & (uint32)I2C_TX_INT) == 0U)".

  • Hello,

    1. I2C1 uses pin B2 and pin C3 ; and I2C2 uses pin G16 and pin G17. Please use configure the pinmux correctly
    2. Make sure both SCL and SDA are pulled up with a resistor. There are no pull-up for I2C signals on HDK.
  • Hello,

    Thank you for your reply, 

    I used I2C1 ( pin B2, C3). The HALCoGen setup was as follows.

    And a pull-up for I2c is in the board of the HDK.

    The code is the same as the i2c example(example_i2cMaster_TX_RX.c).

    When I run the code, SCL signal goes LOW.

    When I press the reset button on the EVM board, I see SDA and SCL signals coming out once.

    After that, SCL is fixed to LOW again.

    Is there any other way to solve this problem?

  • Hello,

    We saw the start bit, slave address (0x78), write/read bit (0), ACK, data (0x08), and NACK. You may not follow CAV26C24's I2C communication protocol.