AnsweredAssumed Answered

problems about time_delay

Question asked by songwei on May 26, 2013
Latest reply on Jun 12, 2013 by songwei

The  time_delay  will make a task pending, but it seems that  the task doesn't go on after that in my project.

 

for example:

    { 8,      task1,  1000,8,      "task1",MQX_AUTO_START_TASK,10,    10 },
{ 9,      task2,  1000,9,      "task2",MQX_AUTO_START_TASK,20,    10 },

static void task1( uint_32 initial_data )

{

    while(1)

    {

        printf("*");

        _time_delay(300);

    }

}

 

static void task2( uint_32 initial_data )

{

    while(1)

    {

        printf("-");

        _time_delay(500);

    }

}


the result is *- 

only once 

Does anyone know the reason? Thanks a lot!


What's more  if  use PE to make the configuration,it will report erorrs.So I use the Device Initialization to make the mcg code,and manually copy it to MQX ,after some test and changes ,it finally works. I am not sure it is the reason or not .

Outcomes