[riot-notifications] [RIOT-OS/RIOT] boards/cpu: nucleo-l152 (stm32l1) broken on master (#8024)
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications