Hi Sid_Zhou,
Which CMP0_IN pin are you connecting the input voltage to?
When swapping INN and INP, is the input voltage still being input through the same CMP0_IN pin?
Also, the BandGap voltage range is between 0.97-1.03V. Have you considered temporarily ruling out issues caused by different BandGap voltages on the two MCUs? For example, could you use a different CMP0_IN pin to input a more accurate external voltage reference?
Have you checked whether the VDD/VDDA voltages of the two S32K1s are the same?
Were OFFSET=1 and HYSTCTR=0 confirmed during debugging?
I noticed you increased the input voltage and recorded VOSEL. Have you tested decreasing the input voltage and recording VOSEL? Also, check if the Analog comparator hysteresis is affected, although I see you configured HYSTCTR=0.
Take two S32K116 photos and tell me the MCU mask.
Best Regards,
Robin