Possible bug I2C-Rx & DMA callback with STMCube generated project
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-09-22 3:25 PM
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?
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-09-23 3:02 AM
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.