Re: Struggling to debug FTM0_CH0 on MKE02Z64

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Re: Struggling to debug FTM0_CH0 on MKE02Z64

781件の閲覧回数
ad_d
Contributor I

Hello XiangJun Rong,

 

Both Function gets halt at while checking step by step at this condition " if(pFTM->MODE & FTM_MODE_WPDIS_MASK)    /* if not write protected */" when I do next step it jumps to "default_isr".

 

    /* FTMEN enable */

    FTM_SetFTMEnhanced(FTM0);

    /* update MOD value */

    FTM_SetModValue(FTM0, 9999);

 

Please can you shed some light on this. How do I proceed  am I  missing any step in enabling any bits...

 

Thanks,

AD

ラベル(1)
0 件の賞賛
返信
1 返信

679件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Arti,

As I have said, pls check the interrupt source by checking the xPSR register after the unexpected ISR happens so that we can know the interrupt source. Secondly, have you set the FTM0 module clock by setting the FTM0 bit in SIM_SCGC?

BR

XiangJun Rong

0 件の賞賛
返信