I use KL03 & need use ( SWD_CLK, SWD_DIO ,RESET_b) as an I/O ( PTA0,PTA1,PTA2) , but as I use these function ,
PTA0 is ok, but PTA1 & PTA2 are fail, Ilist the I/O initial & config , please help me check are there something wrong ?
Hi Tiger,
1. To set a pin as output, there are 3 steps. a) set pin mux; b) set this port as output; c) set pin value.
So, before GPIO_DRV_SetPinOutput(), there should be a GPIO_DRV_SetPinDir().
2. /Reset pin is a special pin. You should disable it by programming FTFA_FOPT[RESET_PIN_CFG].
Regards,
Jing
Jing,
Thanks for help, I solved this issue.
Tiger