MQX Lite IDLE Task problem

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

MQX Lite IDLE Task problem

511 Views
yadhukrishnanvm
Contributor III

Hello,

   I am new to MQX Lite. I am trying to do a project in MQX Lite using code warrier. I read the MQX Lite user's manual and created a project with 3 tasks. I use the _task_create_at function in the first task.

_task_create_at(0, TASK2_TASK, 0, Task2_task_stack, TASK2_TASK_STACK_SIZE);
_task_create_at(0, TASK3_TASK, 0, Task3_task_stack, TASK3_TASK_STACK_SIZE);

I need to run TASK2 and TASK3 in while(1) loop, when I try ffor that only TASK3 is running within the while(1) loop. So please anybody tell me how to do that. There is another problem, whenever other tasks are blocked the program will stop by PE_DEBUGHALT. I think my program is not running the IDLE task when other tasks are blocked. Please help on this I cannot go further without the knowledge about MQX Lite.

0 Kudos
2 Replies

390 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Yadhukrishnan:

I would suggest you refer to the following document. This application note provides the knowledge that enables developers to start quickly and easily to develop your first application on MQX-Lite.

http://cache.nxp.com/assets/documents/data/en/application-notes/AN4610.pdf?fsrch=1&sr=9&pageNum=1 

Regards

Daniel

0 Kudos

390 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Yadhukrishnan

Can you share your project here for analyzing?

Regards

Daniel

0 Kudos