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

Guru**** 2207170 points
Other Parts Discussed in Thread: SYSBIOS
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/806561/rtos-tm4c1294ncpdt-ti-rtos

器件型号:TM4C1294NCPDT
Thread 中讨论的其他器件:SYSBIOS

工具/软件:TI-RTOS

我尝试在 空闲任务中调用 NDK 函数 sendto ()。  代码崩溃。   是否不允许在空闲任务内调用 NDK API?

TI.SYSBIOS.KNL.Task:第1025行:断言失败:A_badPriority:使用了无效的任务优先级。
xdc.runtime.Error.raise:终止执行

空闲任务函数、

空 ethcmdlxmit (UARg arg0、UARg arg1)

   int               bytes1;
   INT               状态;
   对于(;;){
       system_printf ("在 ethcmdlxmit 任务中\n");
       system_flush();
      if (sockcreated)
       {
      if (!isXmitQEmpty())
        {
          System_printf ("队列已更新\n");
          system_flush();
           tbuff = retrieXmitQ();
            bytesSent1=sendto (server、tbuff、5、0、 (struct sockaddr *)&clientAddr、 addrlen);
        }
    }
   }// for 循环
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Ramesh、

    使用较低优先级的任务(例如优先级1)、而不是空闲任务。

    Todd
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    好的。 谢谢

    此致、
    Ramesh