I'm trying to wake up the board from deep sleep by pressing a button.
If the deep sleep is not enabled, the interrupt works fine. When I enable deep sleep, the interrupt from external pin (the button) does not wake up the SOC. Anyone know why and how to fix it?
this is what I used to enter deep sleep:
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; //deep sleep
__WFI();