2024-09-19 12:54 AM
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
2024-09-19 03:39 AM
Hello @DeepakKumar,
Could you share your DMA, ADC and TIM configurations
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.