Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
I have created couple of tasks in my application. one of the task as follows
Void ethcmdxmit(UArg arg0, UArg arg1)
{
int bytesSent1;
int status;
{
int bytesSent1;
int status;
for (;;) {
if(sockcreated)
{
if(!isXmitQEmpty())
{
{
if(!isXmitQEmpty())
{
tbuff=retrieveXmitQ();
bytesSent1=sendto(server, tbuff, 5, 0,
(struct sockaddr *)&clientAddr, addrlen);
}
}
} //for loop
(struct sockaddr *)&clientAddr, addrlen);
}
}
} //for loop
}
The task is created with following code snippet
Task_Handle taskHandle;
Task_Params taskParams;
Error_Block eb;
/* Make sure Error_Block is initialized */
Error_init(&eb);
Task_Params taskParams;
Error_Block eb;
/* Make sure Error_Block is initialized */
Error_init(&eb);
Task_Params_init(&taskParams);
taskParams.stackSize = 1024;
taskParams.priority = 1;
taskParams.arg0 = UDPPORT;
taskHandle = Task_create((Task_FuncPtr)ethcmdxmit, &taskParams, &eb);
if (taskHandle == NULL) {
System_printf("main: Failed to create ethcmdxmit Task\n");
taskParams.stackSize = 1024;
taskParams.priority = 1;
taskParams.arg0 = UDPPORT;
taskHandle = Task_create((Task_FuncPtr)ethcmdxmit, &taskParams, &eb);
if (taskHandle == NULL) {
System_printf("main: Failed to create ethcmdxmit Task\n");
In run time the application stuck with this task( as I see from ROV). Can you help me what could be the issue
0x2000f5c8 NDK Stack Thread 2 Blocked ti_ndk_config_Global_stackThread 0x0 0x0 780 1536 0x2000db78 n/a n/a Semaphore: 0x20000d98
0x2000f614 ti.sysbios.knl.Task.IdleTask 0 Ready ti_sysbios_knl_Idle_loop__E 0x0 0x0 124 768 0x2000e178 n/a n/a
0x20000478 2 Blocked ethcmdrecv 0x0 0x0 332 1024 0x200004c8 n/a n/a Event: 0x200003a8
0x200008e8 1 Running ethcmdxmit 0xfa0 0x0 352 1024 0x20000938 n/a n/a
0x20000e30 5 Terminated NS_BootTask 0x2000542c 0x0 708 2048 0x20000e80 n/a n/a
0x200016d0 1 Ready echoFxn 0xfa0 0x0 124 1024 0x20001720 n/a n/a
0x2000f614 ti.sysbios.knl.Task.IdleTask 0 Ready ti_sysbios_knl_Idle_loop__E 0x0 0x0 124 768 0x2000e178 n/a n/a
0x20000478 2 Blocked ethcmdrecv 0x0 0x0 332 1024 0x200004c8 n/a n/a Event: 0x200003a8
0x200008e8 1 Running ethcmdxmit 0xfa0 0x0 352 1024 0x20000938 n/a n/a
0x20000e30 5 Terminated NS_BootTask 0x2000542c 0x0 708 2048 0x20000e80 n/a n/a
0x200016d0 1 Ready echoFxn 0xfa0 0x0 124 1024 0x20001720 n/a n/a