while(HAL_IS_BIT_SET(ADC->CR, ADC_CR_ADCAL)); make STM32f303 reset
when make ADC calibration, using while(HAL_IS_BIT_SET(adc->CR, ADC_CR_ADCAL)); makes system reset. CLEAR_BIT(adc->CR, ADC_CR_ADCALDIF);//single end SET_BIT(adc->CR, ADC_CR_ADCAL);while(HAL_IS_BIT_SET(adc->CR, ADC_CR_ADCAL)); //make system reset//...