AnsweredAssumed Answered

I have some problems with using MQX4.2, my program is often stuck

Question asked by wang yufei on Dec 14, 2015
Latest reply on Dec 16, 2015 by wang yufei

hello everybody,

I have some problems with using MQX4.2, my program is often stuck in the following code in idletask.c

"

    while (1) {

#if !defined(MQX_ENABLE_IDLE_LOOP) || MQX_ENABLE_IDLE_LOOP

        if (++kernel_data->IDLE_LOOP.IDLE_LOOP1 == 0) {

            if (++kernel_data->IDLE_LOOP.IDLE_LOOP2 == 0) {

                if (++kernel_data->IDLE_LOOP.IDLE_LOOP3 == 0) {

                ++kernel_data->IDLE_LOOP.IDLE_LOOP4;

                }

            }

        }

#endif /* !defined(MQX_ENABLE_IDLE_LOOP) || MQX_ENABLE_IDLE_LOOP */

"

 

it looks like the task scheduling problems, but when I only have one main_task, and then  I was in the debug I2C

it was stuck there, could anybody know what's the problem?

Outcomes