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.

[参考译文] AM623:AM623M 内核创建任务发生错误

Guru**** 2482225 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1443210/am623-an-error-occurred-regarding-the-am623m-core-creation-task

器件型号:AM623

工具与软件:

我在数据中使用了 freertosledflash 例程来修改它。 创建新任务后、我发现无法成功创建该任务。 问题是什么

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

    您好!

    我正在查看您的问题,您可能希望在一两天内得到回复。

    此致、

    Anil。

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

    您好、

    我需要一些更多详细信息来进一步调试该问题。

    您是否在 M4F 或 DM R5F 内核上运行 FreeRTOS 示例?

    请说明您从 MCU+SDK 获取的示例是哪一个、以及您在 MCU+SDK 示例之上进行了哪些更改来在我这边重新创建此问题。

    此致、

    Anil。

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

    我在本示例中 FreeRTOS 的 led_flash 中进行了更改、所有的更改都是向 main 函数中再添加一个创建任务

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

    您好!

    我不确定你是如何创建第二个任务的。

    您需要将以下相同 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。