STMicroelectronics / stm32g4xx_hal_driver

Provides the STM32Cube MCU Component "hal_driver" of the STM32G4 series.
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

HAL_FMAC_FilterStop does not terminate DMA transfer #14

Open hobby-pub opened 4 months ago

hobby-pub commented 4 months ago

Caution The Issues are strictly limited for the reporting of problem encountered with the software provided in this project. For any other problem related to the STM32 product, the performance, the hardware characteristics and boards, the tools the environment in general, please post a topic in the ST Community/STM32 MCUs forum.

Describe the set-up

Describe the bug A wrong behavior of subsequent HAL_FMAC_FilterStart() -> HAL_FMAC_FilterStop() -> HAL_FMAC_FilterStart().

How To Reproduce

  1. FMAC is configured as FIR with output buffer access mode DMA.
  2. The software periodically starts and stops FMAC, by calling HAL_FMAC_FilterStart() / HAL_FMAC_FilterStop().
  3. The second call of HAL_FMAC_FilterStart() fails with DMA related HAL error.

Additional context Follow the issue debugging, DMA transfer starts from within HAL_FMAC_FilterStart(). However, complementary DMA stop is missing in HAL_FMAC_FilterStop().

TOUNSTM commented 4 months ago

Hello @hobby-pub,

Thank you for your contribution. We will concentrate our response on this pull request: stm32g4xx_hal_driver#12.

With Regards,

TOUNSTM commented 3 months ago

ST Internal Reference: 177976