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.

[参考译文] CCS/CC2640R2F:将 TI-RTOS SPI 接口集成到 simple_peripheral 项目中

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/937085/ccs-cc2640r2f-integration-of-an-ti-rtos-spi-interface-into-the-simple_peripheral-project

器件型号:CC2640R2F

工具/软件:Code Composer Studio

您好!

我尝试将 TI-RTOS SPI 接口协议集成到简单的外设项目中、通过修改 Resource Explorer (spislave)中给出的示例从传感器读取数据。

我创建了一个单独的任务并将必要的头文件包含在项目中、但现在遇到以下链接错误:

 

 未定义          第一个参考

 符号             文件中    

 ------          --------

 pthread_attr_init       

 pthread_attr_setdetachstate  

 pthread_attr_setschedparam   

 pthread_attr_setstacksize   

 pthread_create         

 SEM_INIT            

 SEM_POST            

 SEM_WAIT            

 

错误#10234-D:未解析的符号仍然存在

错误#10010:链接期间遇到错误;未构建"simple_peripheral_cc2640r2lp_app.out"

 

>>编译失败

Makefile:187:目标'simple_peripheral_cc2640r2lp_app.out'的配方失败

gmaked[1]:***[simple_peripheral_cc2640r2lp_app.out]错误1.

gmake:***[全部]错误2.

Makefile:180:目标“全部”的配方失败

****构建完成****

是否有人可以解释如何解决此问题、或者可能会提示此错误是关于什么? 谢谢。

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

    尊敬的 Thomas:

    我希望您的.cfg 文件中缺少以下内容。 这引入了 POSIX 库。

    VAR 设置= xdc.useModule('ti.posix.tirtos.Settings'); 

    Todd

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

    您好!

    谢谢 Todd、这解决了我的问题。 我完全错过了教程;(

    仅供参考:这是 POSIX 任务1 :dev.ti.com/.../node 中的第一步