I'm using STM32L071 chip and after enabling the ADC(ADCv1) my code get stuck at adc_lld_init() function, digging a bit I filtered that it's being locked in the calibration procedure in the following code:
Code: Select all
ADC1->CR |= ADC_CR_ADCAL;
while (ADC1->CR & ADC_CR_ADCAL)
;
Probably my calibration flag is not being reset by HW. Anyone have faced this issue before and/or have adc working properly for this chip?
Appreciate any help.