Hi Javier,
PORTA_PCR0[MUX] can be used to switch function CMP0_IN2(ALT0) and SWD_CLK(ALT3).

![PORTx_PCRn[MUX].png PORTx_PCRn[MUX].png](/t5/image/serverpage/image-id/92431iB2A07385A29C6A59/image-size/large?v=v2&px=999)
Due to the default setting of PTA0, you need to change this setting when you want to use it as CMP0_IN2 function.

Debug port\NMI_b\Reset_b pins are not recommend to use as other function, due to it may cause connect problem when you want to debug it again after flashed. See: Bricking and Recovering FRDM-KL25Z Boards: Reset, SWD Clock and Low Power
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------