hardfault issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

hardfault issue

465 Views
pandi
Contributor III

 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);

  1. Screenshot 2023-12-29 110031.pngScreenshot 2023-12-29 120029.pngScreenshot 2023-12-29 120058.pngScreenshot 2023-12-29 120129.png

 

 

 

0 Kudos
Reply
2 Replies

427 Views
pandi
Contributor III

if anyone know let me Hardfault issue

BR

PANDI

0 Kudos
Reply

419 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

 

xiangjun_rong_0-1704250334423.png

 

0 Kudos
Reply