I2C Not working in S32K324 & S32K322

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C Not working in S32K324 & S32K322

390 Views
Riyasma07
Contributor III

Hi,

I2C is not working on S32K324 & S32K322 Controllers, even it's not generating any clock pulses in the SCK line. We have checked the same in S32K3X4EVB-Q257 and it is working fine. This S32K3X4EVB-Q257 controller is a single core.

Seems like the problem is occurring in the dual core system only.

I've attached the project file for S32K322, Kindly review and update. We have been facing this problem for 2 months.

0 Kudos
Reply
1 Reply

370 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Riyasma07 

Reviewing your code, I have the following observations. 

LPI2C master mode operation supports up to fast Mode = 400KHz (400 kbps data rate). In your configurations, it is set as 208333. Refer to sections 71.3.1.4 (Timing parameters) and 71.6 (Application information).

Also, when used on the SDA line, consider that there is only one I2C transmitter at a time. So, when you call Lpi2c_Ip_MasterSendData, we suggest using Lpi2c_Ip_MasterGetSendStatus() to check the progress of the transmission. 

Try changing the above and let me know if the problem persists. 

 

B.R.

VaneB

0 Kudos
Reply