S32K311 NACK occurs in I2C communication by FlexIO

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K311 NACK occurs in I2C communication by FlexIO

跳至解决方案
220 次查看
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!

标记 (4)
0 项奖励
1 解答
200 次查看
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 项奖励
2 回复数
37 次查看
MickMick
Contributor II

I am very sorry for the delay in replying.
I have checked the past information about the problem when FlexIO is used.
In the end, we implemented the I2C communication process in the direction of communicating by controlling GPIO with software instead of using FlexIO, and communication no longer fails.
Thank you very much for your help.

0 项奖励
201 次查看
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 项奖励