Nice plots!moose wrote:Is there any way to reduce the amount of time and/or current required to come out of pyb.standby()? I ran a do-nothing program to determine how much current (actually, charge) is consumed during the bootup after pyb.standby():
I didn't yet get to this stage, checking the dynamic power consumption as it turns on and off. I was more concerned about trying to get as low as possible in the stop() and standby() modes first.
The main thing contributing to a long startup is waiting for the RTC to initialise. There are definitely optimisations that can be done in this respect, and in other parts of the boot process.
It would be easy to not flash the green LED when waking from a standby() and I think that's a good thing to implement.
One other thing is to reduce the frequency of the main clock, but unfortunately on waking from standby() it will be reset to 168MHz. This could also be fixed by saving the freq settings and restoring them on wakeup.
Anyway, there's heaps that can be done to improve the startup consumption.