第一个问题:串口打印出 Error:…\FreeRTOS\port\RVDS\ARM_CM3\port.c,204 错误
首先,先去定位到port.c 的204行。
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 ).
实现任务的函数不得退出或尝试返回到其调用方,因为没有要返回的内容。
如果任务想要退出它,应该改为调用 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( ; ; )
{
}
}