cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5 EXTI and PWR wake-up interrupts behaviour when exiting stop mode 3

DuBarry
Visitor

Hello,

When using stop mode 3 with the stm32u5a9j chip, I noticed a unexpected behaviour when exiting stop mode 3.

I have a device connected to the stm32 chip which wakes up the stm32 on rising edge on one of its pin ( GPIOA0 ). This interrupt can be triggered while the stm32u5 is in run mode or in stop mode 3. When the stm32u5 is in run mode and if this interrupt is triggered, only the the EXTI Line0 interrupt is generated by the NVIC as expected.

But when the stm32u5 is in stop mode 3, sometimes the NVIC generates 2 interrupts when exiting stop mode 3  the EXTI Line0 interrupt and then the PWR wake-up from Stop 3 interrupt ( both with default priorities, respectively 19 and 85 ) and sometimes ( less often ) only the PWR wake-up from Stop 3 interrupt is generated. 

It's not clear why the EXTI is generating an interrupt and sometimes it does not when exiting stop mode 3. Is there a way to make sure the EXTI is also generating an interrupt when exiting stop mode 3 or is it something which cannot be guaranteed ? 

0 REPLIES 0