AnsweredAssumed Answered

How to find global interrupt state of STM32 MCU?

Question asked by harry anders on May 13, 2018
Latest reply on May 13, 2018 by harry anders

Hi,

 

I'm working on a fairly complex code written by other employees at our company where interrupts are globally disabled and enabled in multiple places using:

__enable_irq();

and

__disable_irq();

 

Sometimes it is not clear whether interrupts are currently enabled or disabled and I need to know the status of the global interrupt flag. How can I find the status and is it stored in a register that is accessible from user code or the HAL libraries?

 

I am working on 2 MCUs:

STM32f429 and STM32f777

 

Best regards

Outcomes