S32K311 NACK occurs in I2C communication by FlexIO

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

S32K311 NACK occurs in I2C communication by FlexIO

163 Views
MickMick
Contributor II

Hi!

We use FlexIO for I2C communication with peripheral IC and have a problem.

FXIO_D0 is used as SCL and FXIO_D1 is used as SDA.

Sometimes, NACK is detected in the transmit event handler function in RTD below, around line 2268.

TransmitEventHandler.PNG

When NACK occurs, the local variable values and SMOD status are below.

LocalVal.PNG

SMOD.PNG

Our questions are:
1. What are the possible causes of NACK?
2. How can we take steps to ensure that NACK does not occur?

Please instruct it.

Thank you!

Tags (4)
0 Kudos
1 Reply

143 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @MickMick,

Can you please scope the bus? Is there a NACK on the bus?

There are some limitations in comparison to the dedicated LPSPI.

Have a look at this thread:

https://community.nxp.com/t5/S32K/I2C-through-FlexIO-doesn-t-work-right/td-p/907888

 

Regards,

Daniel

0 Kudos