This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/TM4C1294NCPDT: TI RTOS

Part Number: TM4C1294NCPDT
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;
    for (;;) {
        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
}