STM32CubeF7 icon indicating copy to clipboard operation
STM32CubeF7 copied to clipboard

HAL_DMA_Init set invalid state when DMA_CheckFifoParam not return HAL_OK

Open KamilDuljas opened this issue 2 years ago • 2 comments

https://github.com/STMicroelectronics/STM32CubeF7/blob/6a3b9bb8d09839f365ba83a6cf5823ae5f5226db/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.c#L279

In related to documentation, The checking compatibility before FIFO threshold level and size of the memory burst is very fragile but after returned other state than HAL_OK the function set HAL_DMA_STATE_READY instead of ERROR or RESET.

MCU H7 is also affected: https://github.com/STMicroelectronics/STM32CubeH7/blob/b75d4ea0a368c0e2e7bb9c40c1258a39fff0919a/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c#L341

KamilDuljas avatar Apr 01 '23 19:04 KamilDuljas

Hi @KamilDuljas ,

Thank you for this contribution, this point has been reported to our development teams. I will get back to you as soon as I have any updates.

With regards,

HBOSTM avatar Apr 04 '23 11:04 HBOSTM

ST Internal Reference: 149047

HBOSTM avatar Apr 04 '23 11:04 HBOSTM

Fixed in 7f25a108012707cc7a643a6bee79947bd068e0ab

TOUNSTM avatar Jun 06 '24 15:06 TOUNSTM