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.

CC1312R: I2C communication issue between CC1312 and LED driver

Part Number: CC1312R


Tool/software:

 Hi,
I encountered an I2C communication issue between the CC1312R and LED driver SN3218A.
There is approximately a 0.1% probability of I2C communication failure.The reset button action will trigger it.
When this occurs, pulling the CC1312R reset pin low does not recover the communication; only a power cycle can restore it. The CLK and SDA waveforms during the failure are as follows:
//When this occurs, we have log as follows:
[11:33:25]SDA state normal
[11:33:25]I2C Initialized!
[11:33:25]light sensor adc = 2168
[11:33:25]set led to night
[11:33:39]sn3218aI2cHandle init failed
[11:33:39]sn3218aInit failed!
//The I2C-related software code is as follows:
// The SCH is as follows:
  • I am not sure I understand exactly the problem you describe.

    If the I2C failure because of issuing a reset, or are you saying that when there is a failure, the reset does not fix it?

    If you have i2C communication failure, the first thing you need to do is to figure out is what exactly is failing, and what causes it to fail.

    You should monitor all I2C traffic using a scope to confirm that everything is according to spec. and try to capture the failing event.

    It would also been useful if you can compare a failing event with a non-failing one, to see how they differ.

    I have never seen any issues related to a proper reset. When you do a reset of the CC1312R in case of an I2C failure, I guess you also need to reset the SN3218A. Since we do not know what causes the error, we do not know the state of the SN3218A, and this should also be reset together with the CC1312R.

    It does not look like there is a reset pin on the device, so I guess you need to use teh SBD pin to power the SN3218A off and on again.

    Siri