You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These functions are designed to do the same thing but the sleep() function has a number of advantages (e.g. disabling systick) which can cause issues
// RTCZero.cpp
void RTCZero::standbyMode()
{
// Entering standby mode when connected
// via the native USB port causes issues.
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
__DSB();
__WFI();
}
I agree that the systick interrupt change should be added, but would note that code in the ArduinoLowPower library prevents the serial port from being reestablished after deep sleep. Currently, this does not occur when manually calling USBDevice.detach() and USBDevice.attach() and using the RTCZero standbyMode() functionality.
I also wonder if the ArduinoLowPower library is attaching and detaching the USBDevice even when no USB connection is present. If so, it could be a good idea to have an auto-detect, or a user-configurable option to not have this action taken.
Hi
These functions are designed to do the same thing but the sleep() function has a number of advantages (e.g. disabling systick) which can cause issues
Thanks
The text was updated successfully, but these errors were encountered: