K64F I2C driver Ignore NAK when sending 1 byte

cancel
Showing results for 
Search instead for 
Did you mean: 

K64F I2C driver Ignore NAK when sending 1 byte

323 Views
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));

Tags (5)
0 Kudos
1 Reply

130 Views
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 Kudos