Skip to main content
Associate II
September 20, 2024
Solved

STM32WBA52 ADC DMA

  • September 20, 2024
  • 3 replies
  • 826 views

Hello,

I'm having some trouble using adc with dma and HAL. I noticed that in function HAL_ADC_Start_DMA Length parameter is multiplied with 4. Shouldn't be 2 (16 bit data from adc)?

File stm32wbaxx_hal_adc.c line 1760 (checked with versions 1.2.0, 1.4.1)

Best regards

Best answer by STTwo-32

Hello @cvs_dk 

The correction has been implemented on the V1.6.0 of the STM32CubeWBA. It will be released on the coming days.

Best Regards.

STTwo-32

3 replies

STTwo-32
Technical Moderator
October 1, 2024

Hello @cvs_dk 

Thank you for reporting this. It seems to be a regression on the driver this conversation should be depending on the data width (Word, Half-Word or Byte) you can check this on the driver of the STM32U5. I've escalated internally for correction on the coming releases of the driver (under internal ticket number 192738)

Best Regards.

STTwo-32

cvs_dkAuthor
Associate II
December 2, 2024

Hello @STTwo-32 

In latest Cube FW 1.5.0 above problem is still not solved. What is the status of internal ticket?

Best regards

STTwo-32
STTwo-32Best answer
Technical Moderator
February 11, 2025

Hello @cvs_dk 

The correction has been implemented on the V1.6.0 of the STM32CubeWBA. It will be released on the coming days.

Best Regards.

STTwo-32