Why would an IRQ_Handler nor be called

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Why would an IRQ_Handler nor be called

2,977 次查看
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.

0 项奖励
回复
5 回复数

2,817 次查看
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,811 次查看
archiebarter
Contributor I

That was dumb on my part.

I had forgotten the EnableIRQ()

Thanks, archieb

0 项奖励
回复

2,811 次查看
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,811 次查看
archiebarter
Contributor I

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

You may close the case.

Thanks, archieb

0 项奖励
回复

2,811 次查看
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 项奖励
回复