[riot-devel] Unlocking mutex in RTC ISR and thread switching causes HardFault
anon1644072 at gmail.com
Fri Sep 16 16:31:08 CEST 2016
Any ideas on this?
2016-09-14 22:13 GMT+03:00 Anon Anonymous <anon1644072 at gmail.com>:
> Sure. Here it is: http://pastebin.com/ZGwtZKDd
> 2016-09-14 21:03 GMT+03:00 Joakim Nohlgård <joakim.nohlgard at eistec.se>:
>> Do you have some example code that you can share which triggers this
>> Best regards, Joakim
>> On Sep 14, 2016 7:50 PM, "Anon Anonymous" <anon1644072 at gmail.com> wrote:
>>> I trying to unlock mutex in RTC Alarm ISR and after alarm shoots and
>>> mutex is unlocked, the thread switch request is pending. RTC ISR in rtc.c
>>> file check that flag and calls thread_yield() to call a scheduler. After
>>> PendSV interrupt is triggered, HardFault occurs right after PendSV enabling
>>> When the same operations done from for example, TIM interrupt which used
>>> by xtimer, context switching goes well.
>>>> CFSR: 0x00040000
>>>> HFSR: 0x40000000
>>> My device is STM32L151.
>>> Best regards,
>>> devel mailing list
>>> devel at riot-os.org
>> devel mailing list
>> devel at riot-os.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel