cancel
Showing results for 
Search instead for 
Did you mean: 

I2C DMA slave receiving arbitrary sized packets without using timer/polling?

arnold_w
Senior II

I'm working with the STM32F405 microcontroller and I want to receive packets over slave I2C using DMA, but I don't know on beforehand how big the next packet is. Is this not possible to achieve this without using a timer/polling mechanism that keeps investigating the received data and DMAx_Streamy->NDTR to determine when the reception is finished? I was thinking that I could use the stop condition interrupt from the I2C-peripheral, but it doesn't seem to work in conjunction with DMA. Does anybody know of a solution?

0 REPLIES 0