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.

[参考译文] ADC-AM263X:当在主函数中创建多个线程时激活多个 MCU-PLUS-SDK

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1351357/mcu-plus-sdk-am263x-multiple-adcs-activation-when-multiple-thread-created-in-main-function

器件型号:MCU-PLUS-SDK AM263X

您好!

我准备了一个使用多个 ADC 的 RTOS 项目。  

当我通过调用"xTaskCreateStatic"在 main ()中创建任务时,MCU 无法正确启动。 但是、如果我按照 TI 示例代码中的建议创建了一个任务、 该任务具有最高优先级、然后创建了更多任务、再将其自身删除、那么多个 ADC 激活的问题就能得到解决。 您能否解释一下在 main()中创建多个任务与上述推荐方法之间的区别。

Br

萨曼

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

    尊敬的 Saman:

    这可能是因为 Drivers_open()放置在空示例引用的"main_temp_thread"或 freertos_main()中调用的函数内。 您能否尝试使用 main 函数中的那些内容、看看是否可以解决该问题?  

    谢谢。此致、

    马德哈瓦