AnsweredAssumed Answered

MQX 4.0 lwevent problem

Question asked by Sebastian Zubiaurre on Oct 9, 2015
Latest reply on Oct 13, 2015 by Sebastian Zubiaurre

Hello I am using MQX 4.0 with KSDK 1.2.


Basically I have a task that is performing "_lwevent_wait_for(&evento_entrada, 0x1, TRUE, NULL);"

The event is created by the same task with "_lwevent_create(&evento_entrada,LWEVENT_AUTO_CLEAR);"

The event is being set by a GPIO in an interrupt with "_lwevent_set(&evento_entrada, 0x01);"

 

The problem is that at beginning the code works correctly, but later with a random number of interrupts by the GPIO, it start an infinite loop where the task is not being blocked when actually the event is not set.

 

Here I attach a screenshot where you can see the problem.

 

Thanks in advance,

 

Sebastian.

error lwevent.png

Outcomes