K64F I2C driver Ignore NAK when sending 1 byte

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

K64F I2C driver Ignore NAK when sending 1 byte

1,274 次查看
unknowncoder
Contributor III

I think I may have found a bug in the in the K64F i2c driver, specifically fsl_i2c_edma.c.

When the I2C_MasterTransferEDMA() is called to only send 1 byte it doesn't check for NAK after it sends. Is this a bug or was this done for a reason. 

I've add the call result = I2C_CheckAndClearError(base, base->S); after while (!(base->S & kI2C_IntPendingFlag));

标记 (5)
0 项奖励
回复
1 回复

1,081 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi unknowncoder

According to I2C bus specification, for the last byte,  I2C don't care the NAK

pastedImage_1.png

Regards

Daniel

0 项奖励
回复