Enter Standby mode then wake up(only restart) by RTC timer
Dependencies: mbed WakeUp_STM32
see /users/kenjiArai/notebook/standby-mode-current-consumption-on-nucleo-f446re/
Diff: main.cpp
- Revision:
- 3:1d19ad5ddf52
- Parent:
- 2:4793eeeac6d0
--- a/main.cpp Thu Mar 12 09:29:18 2020 +0000 +++ b/main.cpp Fri Mar 13 03:33:50 2020 +0000 @@ -6,7 +6,7 @@ * http://www7b.biglobe.ne.jp/~kenjia/ * https://os.mbed.com/users/kenjiArai/ * Revised: March 12th, 2020 - * Revised: March 12th, 2020 + * Revised: March 13th, 2020 */ /* @@ -14,7 +14,11 @@ https://forums.mbed.com/t/how-to-deep-sleep/7551 Tested on - + Nucleo-F401RE + Nucleo-F411RE + Nucleo-F446RE + Nucleo-L053R8 only os2 + Nucleo-L073RZ only os2 Nucleo-L152RE */ @@ -65,7 +69,7 @@ printf("\r\nCheck current consumption at Deep-sleep mode.\r\n"); print_revision(); seconds = time(NULL); - if (seconds < DATE_20200220_222222) { + if (seconds < DATE_20200222_222222) { strftime(buf, 50, " %B %d,'%y, %H:%M:%S\r\n", localtime(&seconds)); pc.printf("[Time] %s\r\n", buf); time_enter_mode();