[riot-notifications] [RIOT-OS/RIOT] boards/cpu: nucleo-l152 (stm32l1) broken on master (#8024)

Francisco Acosta notifications at github.com
Mon Feb 5 15:01:32 CET 2018


After a debugging session with @cladmi we found that it was the variable `state` which is messing everything up on stm32l1. Why only on that CPU? I'm investigating, but what we know now is that the variable `state` is being stored "temporary" in r0 (maybe because of compiler optimisations), which after sleep apparently is lost. The solution is to force the variable to be stored in the stack by declaring it `volatile`. We'll (@cladmi ?) submit a PR with the fix, then we need to test if it doesn't break anything on other platforms.

-- 
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/issues/8024#issuecomment-363092679
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20180205/dfa390d4/attachment.html>


More information about the notifications mailing list