S32K1 RTD I2C status never changes to finished

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

S32K1 RTD I2C status never changes to finished

Jump to solution
1,050 Views
hns80
Contributor V

While running the S32K1 I2c_HLD_Example from RTD 1.0.1, I noticed the line:

while(((status = I2c_GetStatus(0U)) == I2C_CH_SEND) && (timeout > 0))

always times out even though it sends the data. When I remove the timeout, the routine waits forever because the I2c_GetStatus() always returns I2C_CH_SEND.

The slave buffer is getting filled.

How can I change the example so the status will change to I2C_CH_FINISHED after the transmission is complete?

 

Labels (1)
Tags (1)
0 Kudos
1 Solution
1,039 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi hns80,

description.txt of I2c_HLD_Example_S32K118 shows that this example is developed on S32K118EVB2-Q048 PCB 47530 RevX1 SCH RevA1 for S32K118. Due to the difference between S32K118EVB2-Q048 and S32K118EVB, so you need to notice the I2C pins if you are using S32K118EVB.

If you are using S32K118EVB, then the connections of I2C pins should be:
SDA: J1.1 - J2.9 (PTA2 - PTA1)
SCL: J1.3 - J2.10 (PTA3 - PTA0)

I2c_HLD_Example_S32K118.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
1,040 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi hns80,

description.txt of I2c_HLD_Example_S32K118 shows that this example is developed on S32K118EVB2-Q048 PCB 47530 RevX1 SCH RevA1 for S32K118. Due to the difference between S32K118EVB2-Q048 and S32K118EVB, so you need to notice the I2C pins if you are using S32K118EVB.

If you are using S32K118EVB, then the connections of I2C pins should be:
SDA: J1.1 - J2.9 (PTA2 - PTA1)
SCL: J1.3 - J2.10 (PTA3 - PTA0)

I2c_HLD_Example_S32K118.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos