I made these changes and it seemed to help until I added a loop in the second task.
Once i add loops in 2 or more tasks the same issue happens.
Any more suggestions Below is the main.c
#include <stdio.h>
#include <mqx.h>
#include <bsp.h>
/* Task IDs */
#define HELLO_TASK 5
#define WORLD_TASK 6
extern void hello_task(uint32_t);
extern void world_task(uint32_t);
const TASK_TEMPLATE_STRUCT MQX_template_list[] =
{
/* Task Index, Function, Stack, Priority, Name, Attributes, Time Slice */
{WORLD_TASK, world_task, 700, 0 , "world", MQX_AUTO_START_TASK, 0, 0},
{HELLO_TASK, hello_task, 700, 0 , "hello", 0, 0, 0},
{0}
};
void world_task ( uint32_t initial_data )
{
_task_id hello_task_id;
hello_task_id = _task_create(0, HELLO_TASK, 0);
if (hello_task_id == MQX_NULL_TASK_ID)
{
printf ("\n Could not create hello_task\n");
} else
{
}
while(1)
{
printf(" World \n");
_time_delay(1);
}
_task_block();
}
void hello_task ( uint32_t initial_data )
{
while(1)
{
printf("\n Hello\n");
_time_delay(1);
}
_task_block();
}