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.

MSPM0G1106: I2C jamming

Part Number: MSPM0G1106

Hi!

I have a multimaster I2C driver. It is designed to be switching to Controller (when I want to send), and target when it is not sending anything. The thing here is that sometimes when switching from one to another, both lines get jammed and do weird stuff.

What could I do to solve this? I would like it to be on idle while being on target. This jamming happens while the I2C is on target mode.

I based off my driver on both examples that are provided on the latest SDK (it's a mixture between multicontroller and dynamic switching examples).

This is an example of the jamming in the bus:

  • Hi, 

    You can try switch I2C's to GPIO first before re-configure Master to Slave.

    And try to hold the voltage level by set the output logic.

    -

    You can use IOMUX to control this.

    Please refer to GPIO and I2C example.

    DL_GPIO_initDigitalOutput
    DL_GPIO_initDigitalOutputFeatures
    DL_GPIO_initPeripheralFunction
    DL_GPIO_initPeripheralOutputFunction
    

    Regards,

    Helic