i2c & dma

What could be included in further releases, or for the forum.
Post Reply
Posts: 1681
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

i2c & dma

Post by zmemw16 » Fri Aug 28, 2015 1:50 pm

first i wonder if there's a need for it? in http://www.stm32duino.com/viewtopic.php?p=5138#p5138
mention is made of spi & the dma add-on and i thought what other libraries might be extended, first was i2c,
actually its the only one so far:-)


User avatar
Posts: 7686
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia

Re: i2c & dma

Post by RogerClark » Fri Aug 28, 2015 10:13 pm

You would need to look in the manual for the STM32, but I suspect in theory you could add DMA to Hardware I2C.

However one big caveat is, from what i recall, That Hardware I2C may have some issues even without trying to get DMA working.

also using DMA without using a completion callback would be fairly pointless as its a slow protocol so you wont gain much performance by using DMA.

Post Reply