Wake-up timer library to wake from deepsleep/power-down

Dependencies:   LPC1114_WakeInterruptIn

Dependents:   LPC812_Sleep_HelloWorld KL05Z_DCF77_RTC_Clock LPC1114_data_logger mBuinoBlinky ... more

Issue: Cannot wake up using external 8MHz crystal

In a custom board based on NUCLEO-F446ZE with both crystals, WakeUp library has no effect on deepsleep(). It only can be awaken with an external interrupt if the file system_stm32f4xx.c is modified to :

lines 141...143

#define USE_PLL_HSE_EXTC (0) /* Use external clock */
#define USE_PLL_HSE_XTAL (1) /* Use external xtal */
#define DEBUG_MCO        (0) // Output the MCO1/MCO2 on PA8/PC9 for debugging (0=OFF, 1=ON)

Any ideas on how to make WakeUp library compatible with custom boards with external crystal?

Example program

1 comment:

15 Nov 2017

Hi Guillermo,

Have a look on this https://os.mbed.com/users/Sissors/code/WakeUp/issues/5 Maybe it is the same problem, if yes you can solve adding rtc_init() in the main code.