Skip to main content
JLope.11
Associate III
January 19, 2023
Question

ADC+DMA fills all the buffer when calling to HAL_ADC_ConvHalfCpltCallback()

  • January 19, 2023
  • 1 reply
  • 557 views

In a stm32f303rb76, I commanded to operate ADC+DMA by setting of the

ADC DMA with circular mode

The ADC I activated continuous conversion mode

and DMA continuous request

Also the analog input signal (no scan mode)

In the initialization made following command:

HAL_ADC_Start_DMA(&hadc1, (uint32_t*)adc1_buf, 2*ADC_BUF_LEN);

Then in the debug mode I realized that always calls:

HAL_ADC_ConvHalfCpltCallback()

filling all the buffer (not a half)

But never calls to HAL_ADC_ConvCpltCallback()

it is a problem of the debugger?

How can be solved?

This topic has been closed for replies.

1 reply

Technical Moderator
January 20, 2023

Hello @JLope.11​, 

Could you specify the processor frequency? the ADC frequency? clock prescaler and resolution?

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL