Skip to main content
Associate II
Sep 20, 2024 7:23 AM UTC
Solved

STM32WBA52 ADC DMA

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

This topic has been closed for replies.
STTwo-32
STTwo-32Best answer
ST Technical Moderator
Feb 11, 2025 1:15 PM UTC

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

3 replies

STTwo-32
ST Technical Moderator
Oct 1, 2024 5:09 PM UTC

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
cvs_dkAuthor
Associate II
Dec 2, 2024 10:11 AM UTC

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
ST Technical Moderator
Feb 11, 2025 1:15 PM UTC

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.