[riot-notifications] [RIOT-OS/RIOT] cpu: RTC implementation for STM32F1 (#11258)

Francisco notifications at github.com
Thu Sep 19 08:34:47 CEST 2019


> Tested on bluepill board.
> Use tests: /tests/periph_rtc and /tests/periph_pm
> Alarm can wake up board with command "unblock_rtc 0 30" after command "off" or "set 0".
> set_alarm work fine

I'm able to wake up from stand-by:

```
2019-09-19 08:30:02,963 - INFO # help
2019-09-19 08:30:02,966 - INFO # Command              Description
2019-09-19 08:30:02,969 - INFO # ---------------------------------------
2019-09-19 08:30:02,972 - INFO # off                  turn off
2019-09-19 08:30:02,975 - INFO # reboot               reboot
2019-09-19 08:30:02,978 - INFO # block                block power mode
2019-09-19 08:30:02,981 - INFO # set                  set power mode
2019-09-19 08:30:02,985 - INFO # unblock              unblock power mode
2019-09-19 08:30:02,989 - INFO # unblock_rtc          temporary unblock power mode
> unblock 0
2019-09-19 08:30:06,854 - INFO #  unblock 0
2019-09-19 08:30:06,856 - INFO # Unblocking power mode 0.
> unblock 1
2019-09-19 08:30:09,006 - INFO #  unblock 1
2019-09-19 08:30:09,008 - INFO # Unblocking power mode 1.
> unblock_rtc 1 3
2019-09-19 08:30:14,429 - INFO #  unblock_rtc 1 3
2019-09-19 08:30:14,432 - INFO # Unblocking power mode 1 for 3 seconds.
> help2019-09-19 08:30:18,961 - INFO #  �main(): This is RIOT! (Version: 2019.10-devel-588-g3043a-pr-11258)
2019-09-19 08:30:18,966 - INFO # This application allows you to test the CPU power management.
2019-09-19 08:30:18,972 - INFO # The available power modes are 0 - 1. Lower-numbered power modes
2019-09-19 08:30:18,977 - INFO # save more power, but may require an event/interrupt to wake up
2019-09-19 08:30:18,980 - INFO # the CPU. Reset the CPU if needed.
```

I'm unable to wake up form stop-mode:

```
make: Entering directory '/builds/tmp/RIOT/tests/periph_pm'
/builds/tmp/RIOT/dist/tools/pyterm/pyterm -p "/dev/riot/tty-nucleo-f103rb" -b "115200" 
Twisted not available, please install it if you want to use pyterm's JSON capabilities
2019-09-19 08:29:15,103 - INFO # Connect to serial port /dev/riot/tty-nucleo-f103rb
helpWelcome to pyterm!
Type '/exit' to exit.
help
2019-09-19 08:29:16,529 - INFO # help
2019-09-19 08:29:16,532 - INFO # Command              Description
2019-09-19 08:29:16,536 - INFO # ---------------------------------------
2019-09-19 08:29:16,538 - INFO # off                  turn off
2019-09-19 08:29:16,541 - INFO # reboot               reboot
2019-09-19 08:29:16,544 - INFO # block                block power mode
2019-09-19 08:29:16,548 - INFO # set                  set power mode
2019-09-19 08:29:16,551 - INFO # unblock              unblock power mode
2019-09-19 08:29:16,556 - INFO # unblock_rtc          temporary unblock power mode
> unblock 1
2019-09-19 08:29:21,751 - INFO #  unblock 1
2019-09-19 08:29:21,753 - INFO # Unblocking power mode 1.
> unblock_rtc 1 3
2019-09-19 08:29:26,963 - INFO #  unblock_rtc 1 3
2019-09-19 08:29:26,966 - INFO # Unblocking power mode 1 for 3 seconds.
> help
help
help
help
help
help
```

I didn't work for me when rebasing on #11286 either.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11258#issuecomment-532988573
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190918/c5aa4a85/attachment.htm>


More information about the notifications mailing list