Why would an IRQ_Handler nor be called

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

Why would an IRQ_Handler nor be called

2,992 Views
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 Kudos
Reply
5 Replies

2,832 Views
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 Kudos
Reply

2,826 Views
archiebarter
Contributor I

That was dumb on my part.

I had forgotten the EnableIRQ()

Thanks, archieb

0 Kudos
Reply

2,826 Views
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 Kudos
Reply

2,826 Views
archiebarter
Contributor I

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

You may close the case.

Thanks, archieb

0 Kudos
Reply

2,826 Views
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 Kudos
Reply