Why would an IRQ_Handler nor be called

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

Why would an IRQ_Handler nor be called

2,987件の閲覧回数
archiebarter
Contributor I

several interrupts for FTM0 are initialized.

The flag and enable bits int the FTM->CxSC registers are set.

But FTM)_IRQHandler() does not stop and a break at the head of the handler.

ラベル(2)
0 件の賞賛
返信
5 返答(返信)

2,827件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Archie Barter,

   If the IRQ handler can't be entered, it means your code still have problems.

   I don't know what the kinetis chip you are using?

  Next time, please tell us the chip part number.

  After you enable the module interrupt in the register, please also check the CHF, does this channel Flag also set?

  Please note, you also need to enable the IRQ with:

EnableIRQ(FTM0_IRQn);

Please try again

If you still have problem, please tell me your chip part number.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

2,821件の閲覧回数
archiebarter
Contributor I

That was dumb on my part.

I had forgotten the EnableIRQ()

Thanks, archieb

0 件の賞賛
返信

2,821件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Archie,

   Thanks for your updated information.

    If you still have problem about it, please kindly let me know.

    But if your question is solved, please help me to mark the correct answer, just to close this case, thank you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

2,821件の閲覧回数
archiebarter
Contributor I

I had left the EnableIRQ(FTM0_IRQn); function out.

You may close the case.

Thanks, archieb

0 件の賞賛
返信

2,821件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Thanks for your feedback.

You can mark the correct answer button to close it, this function only for the post author.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信