AnsweredAssumed Answered

main_task never activated

Question asked by Ulf Bormann on Oct 25, 2011
Latest reply on Nov 3, 2011 by Petr Uhlir

Hi!

 

I wanted to write my first MQX application and I started with the basic application CW10.1 offered to me. But it seems that the main_task is never activated.  

I set a breakpoint in the main_task, but instead of stopping in my main_task the programm stopps at the

void_bsp_exit_handler(void) {

}

 

I tried everything but without success. I never reach my main task. If it is important: I use CW 10.1 and MQX 3.7 and a twrk60n512 Tower. I tried many of the MQX examples, but with the same unsuccess.

 

And thats the Code, CW10.1 creates automatically:

#include

"main.h"

  

TASK_TEMPLATE_STRUCT

MQX_template_list[] =

{

/* Task number, Entry point, Stack, Pri, String, Auto? */

{MAIN_TASK, Main_task, 2000, 9,

"main", MQX_AUTO_START_TASK},

{0, 0, 0, 0, 0, 0, }

};

/*TASK*-----------------------------------------------------------------

*

* Function Name : Main_task

* Comments :

* This task initializes MFS and starts SHELL.

*

*END------------------------------------------------------------------*/

void

Main_task(uint_32initial_data)

{

/*******************************

*

* START YOUR CODING HERE

*

********************************/

for(;:smileywink:

{

 

}

 

}

 

Outcomes