Hi@shunyizhang
If you just use PTC5 as the ADC pin, I think this has no special impact
1.PTC5 can be used as the TDI pin of JTAG, please confirm whether the port is used as the TDI pin.
2.Is it possible to observe the impact of the debugger on the pin when it is connected and disconnected through an oscilloscope?