请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:AM623 工具与软件:
我在数据中使用了 freertosledflash 例程来修改它。 创建新任务后、我发现无法成功创建该任务。 问题是什么

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.
工具与软件:
我在数据中使用了 freertosledflash 例程来修改它。 创建新任务后、我发现无法成功创建该任务。 问题是什么

您好!
我不确定你是如何创建第二个任务的。
您需要将以下相同 API 与不同的函数名称和不同的栈变量搭配使用。
尝试以下方法、看看是否仍有问题。
以下建议无法解决、下次请分享您的示例。 我可以检查并提供建议。
/* This task is created at highest priority, it should create more tasks and then delete itself */
gMainTask = xTaskCreateStatic( freertos_main, /* Pointer to the function that implements the task. */
"freertos_main", /* Text name for the task. This is to facilitate debugging only. */
MAIN_TASK_SIZE, /* Stack depth in units of StackType_t typically uint32_t on 32b CPUs */
NULL, /* We are not using the task parameter. */
MAIN_TASK_PRI, /* task priority, 0 is lowest priority, configMAX_PRIORITIES-1 is highest */
gMainTaskStack, /* pointer to stack base */
&gMainTaskObj ); /* pointer to statically allocated task object memory */
configASSERT(gMainTask != NULL);
此致、
Anil。