cancel
Showing results for 
Search instead for 
Did you mean: 

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

Osto
Senior
Posted on September 23, 2014 at 00:25

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?
1 REPLY 1
Posted on September 23, 2014 at 12:02

Hi ostovary.m,

Would you mind giving a little more information about the STM32CubeMX and the STM32CubeF4FW used versions ?

Can you please provide the .ioc file so that we reproduce your issue.

Regards,

Heisenberg.