wake up from deep sleep

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();

I'm trying to make the same ... The only doc I've fond is the RTClib.standby :( I'm not sure that this is the right place for power management.

Where have you fond the doc to activate power sleep ??

I've found some things here : http://www.atmel.com/images/atmel-42437-software-programming-guide-for-sam-w25-xplained-pro_userguide.pdf