cancel
Showing results for 
Search instead for 
Did you mean: 

ADC Hanging

VasuManiV
Associate III

Hello,

 

We are using STM32L412RBT6 MCU for our inverter and battery charger application. We are facing as issue like ADC stops reading and all the ADC results are giving same and random results. We are reading the result through DMA. 

We couldn't find the root cause for this issue and can you please help us to find out and solve this issue.

After initializing the HAL ADC driver, we are calling calibration function.  

if (HAL_ADCEx_Calibration_Start(&hadc1, ADC_SINGLE_ENDED) != HAL_OK) {
Error_Handler();
}

after that we are calling the below function to start ADC conversion.

HAL_ADC_Start_DMA(&hadc1, alnAdcResult, NO_OF_ADC_CONVERSION);

Then we are using timer2 to trigger the ADC SOC.

VasuManiV_0-1721817135600.png

 

VasuManiV_1-1721817166440.png

please help us to solve this.

0 REPLIES 0