main_task never activated

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

main_task never activated

跳至解决方案
879 次查看
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 项奖励
回复
1 解答
719 次查看
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 项奖励
回复
1 回复
720 次查看
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 项奖励
回复