Open ceolin opened 2 weeks ago
The images below show the problem happening.
This first graphic we can see the energy consume getting constantly high after the system attempts to use uart in the ISR that woke up the system
Now the same code but with these fixes applied
The spikes were cause by the interruption and as we can see the system goes back to sleep properly again and all power consumption falls.
The main fix in this pr is in the wake up procedure. When the system was waking up the notification coming from the ISR was not properly restoring the system. Devices were not being restored there, this means that the ISR wouldn't be able any device that was previously suspended.
pm_system_resume