Hi,@Senlent
I investigated the underlying code, and this status can be explained. When the ADC fails to calibrate for some reason, the hardware state machine of the ADC module remains in Calibrate. After the software completes the calibration process, it will disable the ADC module, reconfigure the clock, and then enable the module again. The criterion for the software to return is the ADC status register, but currently, the value of the register is Calibrate. The software returns a timeout and then will not power up this ADC module again.
The main problem now is why the hardware state machine of the ADC module remains in Calibrate?And this problem is occasional, and as long as you change a little code, the problem will be very difficult to reproduce.
企业微信截图_1774870123825.pngBest Regards,
xianlong