Hi!
There is an end device that measures the temperature. If I calibrate the ADC during initialization or immediately after startup, the program hangs. If I start the calibration after some time (I do it every 20 measurements, but I start with 19 and so on 19, 39, 58 ...), then everything is fine.
calibration code from here: github.com/.../main.c