In mkv31f12vll12 controller using ADC inject trigger method configure when I configure PWM pin program stuck in HARDFAULT HANDLER any suggestion let me know
The below line is for configuring PWM pin
PORT_SetPinMux(BOARD_FTM0_CH0_PORT, BOARD_FTM0_CH0_PIN, kPORT_MuxAlt4);
if anyone know let me Hardfault issue
BR
PANDI
Hi,
Before you write the PORTx_PCRn reg, you have to enable the PORTx gated clock by setting the PORTx bit in SIM_SCGC5 reg.
Hope it can help you
BR
XiangJun Rong