main_task never activated

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

main_task never activated

Jump to solution
545 Views
UB39
Contributor I

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:

{

 

}

 

}

 

0 Kudos
1 Solution
385 Views
petr_uhlir
NXP Employee
NXP Employee

UB39,

check the value of MAIN_TASK. It should be higher then 0 as 0 is reserved to end of task template list.

View solution in original post

0 Kudos
1 Reply
386 Views
petr_uhlir
NXP Employee
NXP Employee

UB39,

check the value of MAIN_TASK. It should be higher then 0 as 0 is reserved to end of task template list.

0 Kudos