K64F I2C driver Ignore NAK when sending 1 byte

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

K64F I2C driver Ignore NAK when sending 1 byte

839件の閲覧回数
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 返信

646件の閲覧回数
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 件の賞賛
返信