【FreeRTOS】任务创建后但任务中为空时运行错误

cpu会死在文件<port.c>中下边函数处

static void prvTaskExitError( void )
{
  /* A function that implements a task must not exit or attempt to return to its caller as there is nothing to return to. If a task wants to exit it
  should instead call vTaskDelete( NULL ).

  Artificially force an assert() to be triggered if configASSERT() is defined, then stop here so application writers can catch the error. */


  configASSERT( uxCriticalNesting == ~0UL );
  portDISABLE_INTERRUPTS();
  for( ;; );
}

posted @ 2018-06-09 13:41  壹点灵异  阅读(972)  评论(0编辑  收藏  举报