Anthony Duhamel

MQXLite Semaphore issue in an interrupt

Discussion created by Anthony Duhamel Employee on Aug 30, 2016
Latest reply on Sep 2, 2016 by Anthony Duhamel

Hello guys,


I'm facing an issue using MQXLite. My project runs on CW10.6 +  PEx + MQXLite.

I'm calling  "_lwsem_post" in an interrupt handler to synchronize a task with this ISR but my program goes in HardFault. I well initialized the semaphore and it is valid before calling the "post" method. The fault comes in the "lwsem.c" file just at the "_INT_ENABLE" line.

So.... well, enabling/disabling the interrupts in an interrupt does not sound good, but that normally the usual purpose of the semaphores.


Does anybody got the answer?


Thank you,