[riot-notifications] [RIOT-OS/RIOT] kinetis: Implement low power modes (#7897)

Fauchon notifications at github.com
Thu Jan 31 00:50:15 CET 2019



Hi, 

I played around with pr/kinetis-pm on a Kinetix KW2xD custom board
(https://github.com/ofauchon/oflmotes/tree/master/mote-devboard/kw2xd/demo-riot/boards/oflmote-dev)

At first attempt, the MCU was not going to LLS mode and was consuming >10 mA while idle.
I had to comment out a couple of PM_BLOCK in uart.c :

https://github.com/gebart/RIOT/blob/7ab0e94f2aaa6240fb30a963498e9238c9631b7f/cpu/kinetis/periph/uart.c#L213
https://github.com/gebart/RIOT/blob/7ab0e94f2aaa6240fb30a963498e9238c9631b7f/cpu/kinetis/periph/uart.c#L432

Now the power consumption dropped to <1mA when idle.

Line 213 PM_BLOCK happens because KW2xD has no LPUART but a defined rx_cb.
I'll try to reinit the board uart  without the rx_cb after RIOT init. 

But I have no idea why the second 'PM_BLOCK(KINETIS_PM_STOP);' (uart.c line 432) is never unlocked..

Beyond this minor problems, this PR works fine and is really stable on my setup. 

Thanks for this feature Joakim, looking forward the merge !
Hope that helps!

Olivier


-- 
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/7897#issuecomment-459157997
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190130/6cd516d1/attachment.html>


More information about the notifications mailing list