[riot-devel] Unlocking mutex in RTC ISR and thread switching causes HardFault

Anon Anonymous anon1644072 at gmail.com
Wed Sep 14 19:49:34 CEST 2016


Hello,

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
command.

When the same operations done from for example, TIM interrupt which used by
xtimer, context switching goes well.

FSR/FAR:
>  CFSR: 0x00040000
>  HFSR: 0x40000000
>


My device is STM32L151.

Best regards,
Anon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20160914/ff65cce2/attachment.html>


More information about the devel mailing list