This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Restart system from QDEC_IRQHandler

Hi,

Time to time, Our board stuck in QDEC_IRQHandler.

1) In which case QDEC_IRQHandler could occurs?

2) I want system reset from QDEC_IRQHandler automatically.

But I can't find definition of QDEC_IRQHandler.

Please let me know where is QDEC_IRQHandler definition.

Parents Reply Children
  • Hello,

    SW is based on ESB example. And There is no "Additional load file" in segger embedded studio option.

    So, I think that project not includes soft device.

    As your recommend, some files that include "power" or "clock" in name are added to project.

    And It looks like problem is fixed.

    It is wired to me. Because It was compile without any error before.

    Why it fixed the problem? Could you help me to understand?

  • Most of the Power and clock functions are "static inline" and don't actually call a function in the .c file.

    But the IRQ handler function is in those .c files. Since no other functions are actively used, it won't trigger a linker error when missing - and the IRQ is mapped to  the default handler.

    Triggering an interrupt without the correct handler present will cause the program to hang in the empty default handler function.

Related