|
如题,任务用时较长,导至超时重启,如何解决,请大神指教,谢谢。出错信息如下:
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0).
程序为:
TaskHandle_t *task1;
void setup() {
// put your setup code here, to run once:
//创建任务
//指定在核心0上执行Task1_blink任务
xTaskCreatePinnedToCore(Task1_blink, "blink", 10240, NULL, 0, task1, 0 );
}
void loop() {
// put your main code here, to run repeatedly:
}
/*---------------------- 定义任务 ---------------------*/
void Task1_blink(void *pvParameters) // This is a task.
{
(void) pvParameters;
int i=0;
for(;;){
i++;
i--;
}
} |
|