Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 7 months ago.
Not working (is now with Erik Olieman's WakeUp)
Unless I'm mistaken defining InterruptIn e.g. InterruptIn down(JOYSTICK_DOWN); causes the program to freeze. If I comment out these and the handling code the program will run. However ticker does not wake up in deepsleep() mode. Tried with SRC revision 635 and official Mbed also with CR2032 battery fitted.
edit...
Tried again and for some reason it is now working apart from the Ticker does not wake up from deepsleep.
I get 120uA in sleep and 17.5uA in deepsleep, but that is with the LCD active so not too bad.
The only problem is Mbed deepsleep function does require the MCU to be Timer wake up capable at these levels as it is for other Mbed platforms. Could this be achieved please?
edit...
Erik Olieman has now implemented WakeUp support for this platform using the RTC as the wake up timer.
https://developer.mbed.org/users/Sissors/code/WakeUp/
SystemClockConfig and LowPowerConfiguration functions are not required with deepsleep, it achieves 17.5uA with with the LCD drive active, around 8uA without.