cancel
Showing results for 
Search instead for 
Did you mean: 

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

salman2
Associate II
Posted on November 11, 2015 at 06:08

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. -> 

http://electronics.stackexchange.com/questions/96000/why-does-last-data-of-i2c-dma-transfer-break

2. -> 

/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/DMA%20%2b%20I2C%20losing%20one%20byte&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=519

#dma-i2c
0 REPLIES 0