No, as I wrote in my initial post I measure the BANDGAP and VREFH channels and the results from these measurements are correct. I have also measured other channels as ADC2_S19 (the potentiometer) and the results are correct.
The problem is that the calibration of ADC2 always returns error/E_NOT_OK. This issue manifest when I call
Adc_Calibrate(AdcHwUnit_2, &CalibStatus)
where AdcHwUnit_2 corresponds to the ADC2 instance, and CalibStatus.AdcUnitSelfTestStatus is always E_NOT_OK.
For ADC0 and ADC1 where the calibration works, for which after some attempts the corresponding CalibStatus.AdcUnitSelfTestStatus is E_OK. But, for ADC2 CalibStatus.AdcUnitSelfTestStatus is always E_NOT_OK, even after several thousands calibration attempts! And whether the results are correct or incorrect does not matter because the calibration should work.
To summarize:
*Are you facing incorrect results? No, the results are correct.
*How the issue manifest? Calibration of ADC2 always returns error/E_NOT_OK.