Hi there,
I have configure I2C0, but I2C will not work as expected in between some times.
So I need to toggle the SCL 9 times, But I have already configured I2C using generated code by S32DS tool, If I need to config the SCL as gpio in between means How can I do that, any suggestion on this?
And after sending 9 clock pulses I need to revert back the SCL functionality to that pin.
When your I2C bus gets stuck, toggling the SCL line nine times can often clear the issue. To do this with your S32DS-generated code, you'll need to temporarily reconfigure the SCL pin from its I2C function to a GPIO output. After setting it as a GPIO, make sure it's configured as open-drain output, then toggle it high and low nine times. Finally, revert the SCL pin back to its I2C peripheral function and potentially re-initialize your I2C module to restore normal communication. You'll use SDK functions like PORT_SetPinMux and GPIO_WritePinOutput for this.