S32K142 I2c sometimes doesn't work after Wakeup

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

S32K142 I2c sometimes doesn't work after Wakeup

1,165 Views
tobiashensle
Contributor I

Hi,

I have a a problem with I2c bus on a S32K142 (PE RTM 2.0) that sometimes after wakeup from deep sleep the bus doesn't work. Neither the SCL nor SDA line will be pulled to GND, no start condition is generated.

The µC is the master and the bus runs at 200kHz and has two slave devices (Elmos BAP sensors), 5V supply.

I implemented a timeout routine which reset the I2c hardware, this includes the slaves. The 5V supply of the sensors and for the I2c is switched off and on again (sleep current reduction). The time between switch on and start of communication is 10ms.

The reset rountine is often called several times because after every reset a new timeout occurs and the procedure start from the beginning, because the I2c communication hasn't started.

At one point the communication will start again and everything works perfect but up to this point it takes often more than hundreds of milliseconds.

I hope this wasn't that much confusing :smileywink: and someone can help with that issue.

In the picture you can see the I2c lines SCL (yellow) and SDA (green) and a trigger during HW reset (orange). After 1.3s the communication works a ecpected.

regards,

Tobias

0 Kudos
1 Reply

1,089 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Tobias, 

Are you using our SDK in your project? If so, could you please tell me which version? Are you using the evaluation board or your own? 


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:

- 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