AnsweredAssumed Answered

Last few bytes of I2C transfer gets corrupted when transmitting using DMA

Question asked by KHAJAS on Nov 11, 2015
Hello,

I am using DMA in STM32L053 micro-controller to sent a data buffer to LCD display via I2C, but the last few bytes received at LCD end got corrupted. But if I am not using DMA the transfer occur currently.

I found two other questions about same issue on this forum and Stack overflow, but without any clear solution. Discussion in one forum says it is because DMA is issuing a STOP bit before I2C peripheral completes sending data. How can I save this problem

links to forum discussions with same issue:
1. -> Stackoverflow link

2. -> ST forum

Outcomes