AnsweredAssumed Answered

Possible bug I2C-Rx & DMA callback with STMCube generated project

Question asked by Osto on Sep 23, 2014
Latest reply on Sep 23, 2014 by Montassar BEN ROMDHANE
Hi,

I found a possible bug in the generation of the code for I2C using DMA to receive data.
When receiving data, the Rx callback is never called but the DMA-transfer is done correctly.
The reason is that the DMA interrupt is not hooked correctly by STMCube. In startup_stm32f407xx.s the DMA interrupt is redirected to DMA1_Stream0_IRQHandler but this function doesnt exist. The only function which call the callback is HAL_DMA_IRQHandler but this function has no reference at all.

It seems that the STMCube dont change the Interrupt kook correctly.

How can I fix that?

Outcomes