Skip to main content
Explorer II
June 17, 2024
Question

HAL_ADCEx_EndOfSamplingCallback in DMA mode?

  • June 17, 2024
  • 0 replies
  • 751 views

Is it possible to make HAL_ADCEx_EndOfSamplingCallback fire when ADC is running in the dual mode with DMA .

More specifically:

On a NUCLEO-H723ZG, the ADC is started by HAL_ADCEx_MultiModeStart_DMA() and ADC2 is a slave to ADC1. The ADC conversion is triggered by TIM4 Capture Compare event, and I want to process each ADC value one by one rather than after HAL_ADC_ConvHalfCpltCallback() or HAL_ADC_ConvCpltCallback(). The sampling time is long so plenty of time before consecutive conversions.

PM

 

    This topic has been closed for replies.