I2C DMA nack K22F frdmk22f #i2cma
Can you provide more information about your application? I've implemented I2C with EDMA but not in the situation where the slave can return a NAK (I'm writing to an OLED).
I'm not an expert on I2C DMA but DMA for the most part is not an intelligent operation - data is sent on the channel without regards to any conditions. It's up to the developer to ensure that the receiver can take the data without error.
If you have a case where the receiver can NAK arbitrarily for some reason (ie buffer full) then I think you're going to have to go to an interrupt service routine that intelligently determines whether to resend, wait to resend, restart, wait to continue the I2C data.
Retrieving data ...