I'm using my accelerometer's GPIO interrupt to wake up the MPU from PowerOFF mode and it works great.
Now, I'm trying to use the same interrupts to wake it up from Sleep mode, but it stays in Sleep mode and ignores the interrupts.
while (true)
{
err_code = sd_app_evt_wait();
APP_ERROR_CHECK(err_code);
}
It stays there forever.
I already looked at other similar issues at the devZone and could not find a solution.
Could you help, please?