This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[Concerto] M3 interrupts enabled by default

Hello!
We've got some strange behavior of M3. Interrupts are generated and serviced after reset by default. Even if API function "IntMasterEnbale()" wasn't called. Is it normal?

Thank you =)

  • Which interrupts you see are enabled? and what reset behavior are you observing (debug reset or XRSn)?

     

    Best Regards

    Santosh

     

  • Hello. interrupts, enabled by IntEnable() are enabled. i was not correct. I meant interrupts are enabled globally by default. Just like "EINT" in C28. It's observed during debug sessions.

    let me explain: we have set a timer and enabled an interrupt of this timeer. I expect, that inerrupt will not be serviced until i call IntMaterEnable(). But they are. Should I call IntMasterDisable at the beginning of a program to disable ints globally? 

    thank you.

  • You are right, on M3 it looks like interrupts are enabled by default at the CPU level. They are disabled at the NVIC level.

    so if you don't want the interrupts to get triggered while you enable it, you have to use IntMasterDisable(), then enable interrupts at NVIC level and then use IntMasterEnable().

     

    Best Regards

    Santosh