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/

Files at this revision

API Documentation at this revision

Comitter:
kenjiArai
Date:
Fri Mar 13 03:33:50 2020 +0000
Parent:
2:4793eeeac6d0
Commit message:
modified comments and constant

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 4793eeeac6d0 -r 1d19ad5ddf52 main.cpp
--- 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();