STMicroelectronics / STM32CubeG4

STM32Cube MCU Full Package for the STM32G4 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
182 stars 98 forks source link

HAL_FMAC_FilterStop does not terminate DMA transfer #48

Closed hobby-pub closed 5 months ago

hobby-pub commented 5 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().

hobby-pub commented 5 months ago

Moved to stm32g4xx_hal_driver.