Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hi, I am using the OSI_Taskcreate to run 2 task. The first task runs, but once it finishes, it does not run the 2nd task. I don't get it, I followed the freertos_demo example.
This is in my main code
lRetVal = osi_TaskCreate( WlanAPMode, \
(const signed char*)"wireless LAN in AP mode", \
OSI_STACK_SIZE, NULL, 1, NULL );
if(lRetVal < 0)
{
ERR_PRINT(lRetVal);
LOOP_FOREVER();
}
lRetVal = osi_TaskCreate( SendAnalogInputToClient, "Analog Input to Client",\
OSI_STACK_SIZE, NULL, 1, NULL );
if(lRetVal < 0)
{
ERR_PRINT(lRetVal);
LOOP_FOREVER();
}
//
// Start the task scheduler
//
osi_start();
Once the WLANAPMODE finishes running, it is supposed to run the SendAnalogInputToClient, which is simply a UART_Print msg, but it does not show up on the console. Instead it the console just says that "Error[-1] on the line I run my 2nd task"
Here is the code for the SendAnalogInputToClient
void SendAnalogInputToClient( void *pvParameters )
{
UART_PRINT("message = ");
UART_PRINT("\n\r");
osi_Sleep(200);
}