cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with ADC2 self-calibration in dual mode

Davood_Kesha
Associate II

Hello ST experts,

Recently, I was developing a project with STM32H750I microcontroller, I faced a problem with ADC self-calibration HAL function (HAL_ADCEx_Calibration_Start)!
I configured ADC1 and ADC2 in dual simultaneous mode + DMA + Timer with synchronous clock mode for clock Prescaler for both ADCs for better synchronization. I executed self-calibration function for ADC1 and ADC2 individually before activating Timer and DMAThe problem was that the microcontroller cannot finish the process. I checked the process only for ADC1. It was okay for ADC1. When I checked the process only for ADC2, it did not work. Also, I checked if I change timer Prescaler to the asynchronized clock mode, the self-calibration function will work. On the other hand, I miss ADCs synchronization. Therefore, I have to use synchronous mode for Clock Prescaler. Have you faced this problem in your projects? Could you please help me in this issue?

1 REPLY 1
Karl Yamashita
Principal

It was okay for ADC1. When I checked the process only for ADC2, it did not work. 

You have to be more specific in what you mean by "it did not work"?

Was it that HAL status was not HAL_OK or that it did not return?

I was told that if a devices starts to smoke, put the smoke back in. I guess I never got all the smoke because the device never worked afterwards.
Don't worry, I won't byte.
TimerCallback tutorial! | UART and DMA Idle tutorial!

If you find my solution useful, please click the Accept as Solution so others see the solution.