cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U575 immediate wake from STOP2

ficklesheep
Visitor

Hi everyone, 

I am relatively new to the U575 chips however I have had this working fine on an L4R9. I am trying to enter and exit STOP2 mode on the U575 Nucleo board, but I am experiencing immediate wake-up events. There are no pending interrupts in the NVIC_ISPR registers and nothing in the SCB_ICSR registers upon STOP2 entry however the system immediately wakes and shows SCB_ICSR = 0xf000.

I have Trustzone enabled and I am using Azure RTOS. I am calling... 

HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI);

...from the secure side. I do not single step over this function as that is a known wakeup source, I have breakpoints sometime before and after.


Initial debugging had led me to the tick timers causing the wakeup events (TIM6 and TIM7 - moved due to Trustzone and RTOS), but again there appears to be no pending interrupts to be the obvious cause. Clearly, I am looking in the wrong spot.

Which registers are the go-to to sourcing low power mode wakeup causes? Could this be a Trustzone specific issue? I have been able to debug low power modes before with the L4R9, could this be a U5 debugger interaction issue?

I am struggling to find the issue let alone the solution so apologies if this is vague.

Any help would be appreciated!

0 REPLIES 0