Hello, I'm encountering an issue with the ADC self-test and CPU temperature measurement.
After executing Adc_SelfTest(0) and Adc_SelfTest(1), the ADC1[ch17] channel starts returning incorrect values, which seem to be random and inconsistent.
Marekp_2-1748520826068.png
ADC readings Self test - NXP Community
Marekp_0-1748520410813.png
ADC instances 0 and 1 are triggered via BCTU. According to the documentation, BCTU triggering is disabled during the self-test. The self-test is executed, and the registers IP_ADC_0->MCR, IP_ADC_1->MCR, and IP_BCTU->MCR are restored to their original values afterward.
However, despite restoring the configuration, ADC1[ch17] continues to return random samples after the self-test is completed.
Marekp_1-1748520794936.png
What additional steps should be taken after the self-test to ensure the CPU temperature measurement is correct?