AnsweredAssumed Answered

MQX for KSDK: lwevent makes errror no_one_to_run

Question asked by Menko Oldewurtel on Mar 4, 2015
Latest reply on Mar 9, 2015 by Radek Sestak

Hello,

 

with KDS2.0.0 and KSDK1.1.0. MQX for KSDK configured with PE for FRDMK64F.

 

In a init-function I create a  event, witch is defined in a global header-file:

...

     result = _lwevent_create(&sampleStateEvent, 1); //Event auto clear

...

 

There is one ISR (every 4096µs) for DMA Complete:

PE_IST(DMA0_IRQHandler)

{

     _mqx_uint result=MQX_OK;

 

     DMA_CINT = (uint8_t)0x00; //Clear DONE and INT flags

     result = _lwevent_set(&sampleStateEvent, (uint32_t) 2);

 

     DMA_ERQ =(uint32_t) 0x3; //start DMA Channel 0 and 1 again

}

 

In an Task I want to wait for the Event with:

....                                                    

     result = _lwevent_wait_ticks(&sampleStateEvent, (uint32_t) 2, TRUE,0);

....

 

For the first pass of the wait command the Task waits till the event is set by the ISR.

Next pass MQX crashs:  ASM_LABEL(no_one_to_run)

 

Any idea whats my Mistake?

 

Thanks!

 

Menko

Outcomes