cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WBA52 ADC DMA

cvs_dk
Associate II

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

1 REPLY 1
STTwo-32
ST Employee

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.