AnsweredAssumed Answered

RT1064 I2C+eDMA error  occur when address wrong

Question asked by 胡 純祥 on May 7, 2020
Latest reply on May 20, 2020 by Sabina Bruce

Hi,

    First post here,I use evkmimxrt1064_lpi2c_edma_b2b_transfer_master this project to test I2C, and found that if my I2C1 doesn't connect anything or get a nak, then my edma will always busy and g_MasterCompletionFlag always true, then I couldn't send another data anymore.

    How can I fix it?Use LPI2C_MasterCheckAndClearError to detected and clear the flag?Or use LPI2C_MasterTransferAbortEDMA behind the LPI2C_MasterTransferEDMA?

    I just want make sure that if something wrong happened and I still can send data.

 

i.mx rt 1064

sdk2.7.0

Outcomes