Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
I tried to call the NDK function sendto() inside an idle task. The code is crashing. Are NDK api not allowed to be called within idle task?
ti.sysbios.knl.Task: line 1025: assertion failure: A_badPriority: An invalid task priority was used.
xdc.runtime.Error.raise: terminating execution
Idle task function,
Void ethcmdxmit(UArg arg0, UArg arg1)
{
int bytesSent1;
int status;
{
int bytesSent1;
int status;
for (;;) {
System_printf("In ethcmdxmit Task\n");
System_flush();
if(sockcreated)
{
if(!isXmitQEmpty())
{
System_printf("Queue updated\n");
System_flush();
System_printf("In ethcmdxmit Task\n");
System_flush();
if(sockcreated)
{
if(!isXmitQEmpty())
{
System_printf("Queue updated\n");
System_flush();
tbuff=retrieveXmitQ();
bytesSent1=sendto(server, tbuff, 5, 0, (struct sockaddr *)&clientAddr, addrlen);
}
}
} //for loop
}
}
} //for loop
}