Skip to main content
Visitor II
September 19, 2024
Question

STM32H523RCT7 ADC DMA MULTICHANNEL PROBLEM

  • September 19, 2024
  • 1 reply
  • 562 views

Hi ST Team,

                      Currently i am using STM32H523RCT7 MCU for one of my project. In this MCU, i am facing a problem regarding ADC MULTICHANNEL DMA. 

When i am using the 10 adc channel with dma which is trigger by timer3(trigger timing 100us)using below API..

HAL_ADCEx_Calibration_Start(&hadc1, ADC_SINGLE_ENDED);
HAL_ADC_Start_DMA(&hadc1,(uint16_t *)uADCConvertedDataCopy,10);

HAL_TIM_Base_Start_IT(&htim3);

then in main while loop mcu perform instruction execution at very low speed. 

When i commnet above API as below..

//HAL_ADCEx_Calibration_Start(&hadc1, ADC_SINGLE_ENDED);
//HAL_ADC_Start_DMA(&hadc1,(uint16_t *)uADCConvertedDataCopy,10);

HAL_TIM_Base_Start_IT(&htim3);

then MCU  perform instruction execution at good speed. that means while loop execution faster.

I think their is some issue regarding my cube mx setup or while using the ADC DMA API.

For check the execution time i make a pin high HAL_GPIO_WritePin(GPIOC, GPIO_PIN_9,1);

and do some task & after that make a pin low HAL_GPIO_WritePin(GPIOC, GPIO_PIN_9,0);

Please help me to resolve this issue.

I am sharing the code generated by cubemx with source code.

PFA.

 

Thanks with Regards,

Deepak

 

 

    This topic has been closed for replies.

    1 reply

    ST Employee
    September 19, 2024

    Hello @DeepakKumar

    Could you share your DMA, ADC  and TIM configurations