Hi,
We are using a platform that has an S32K314 controller and we are trying to bring up the I2C, for that, we have used the example "I2c_IP_LPI2C_Transfer_S32K312" as a reference and ported the codes to our platform but the issue that we saw is that there is no clock pulse generating in the SCL pin while probing through the DSO.
So I also tried to build the example code "I2c_IP_LPI2C_Transfer_S32K312" and tried to implement it on the S32k312 eval board.
I have followed the description given by giving a 4.7K pull-up in both SCL-VDD and SDA-VDD.
Can anyone please help us bring up the I2C in our S32k platform?
Regards
Anoop
Solved! Go to Solution.
Hello Anoop,
The issue seems strange. When you remove the connections, are the pull-ups still connected to the SDA / SCL of the Master?
In your S32K314 project, I would check the SIUL2 MSCR registers whether the PTD13, PTD14 pins are muxed to LPI2C0, and whether the output / input buffers (OBE, IBE) are set.
You could also add the internal pull-up on those pins (PUE, PUS).
Regards,
Daniel
Hi Daniel,
Thanks for responding to this and sorry for the delay.
In the device, I have added the pullup in both SCL & SDA on the master side even when the loopback is removed.
I also added the internal pull-up on those pins (PUE, PUS).
Regards
Anoop
Hi Daniel,
Hi Anoop,
I just tested it on S32K344 (S32K314 in lockstep) becasue I don't have any decoupled S32K344 (S32K314).
Without any modification and without any external pullups, it works.
This is the signal on PTD13, PTD14.
SCL HIgh (MCCR0_CLKHI) is too short, but it works.
I think there might be an issue in your HW.
Best regards,
Daniel
Hello Anoop,
Can you share the project so that I can test it on my side?
Thanks,
BR, Daniel
Hello Anoop,
The issue seems strange. When you remove the connections, are the pull-ups still connected to the SDA / SCL of the Master?
In your S32K314 project, I would check the SIUL2 MSCR registers whether the PTD13, PTD14 pins are muxed to LPI2C0, and whether the output / input buffers (OBE, IBE) are set.
You could also add the internal pull-up on those pins (PUE, PUS).
Regards,
Daniel