大家好、
以下是客户的请求:
客户向 simple_peripheral 的 mian 函数添加了一个线程、但错误 报告说:
错误#10234-D:未解析的符号保持错误#10010:链接期间遇到错误;未构建"simple_peripheral_LP_CC2652Rb_tirtos_ccs.out"
pthread 头文件也包含在 mian 文件中。
为什么会出现此问题?
您可以帮助检查此案例吗? 谢谢。
此致、
Nick
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.
大家好、
以下是客户的请求:
客户向 simple_peripheral 的 mian 函数添加了一个线程、但错误 报告说:
错误#10234-D:未解析的符号保持错误#10010:链接期间遇到错误;未构建"simple_peripheral_LP_CC2652Rb_tirtos_ccs.out"
pthread 头文件也包含在 mian 文件中。
为什么会出现此问题?
您可以帮助检查此案例吗? 谢谢。
此致、
Nick
您好、Ryan、
上面的第一张图片是客户在 main.c 中修改的零件
修改它的原因是、他已经对 spimaster 项目进行了项目开发、而 spimaster 项目中使用了线程函数。 他 希望 传输通过蓝牙收集的数据。
因此、他 开始尝试将 spimaster 项目与 simple_peripheral 项目组合在一起、但是 simple_peripheral 项目使用 SimplePeripheral_createTask 函数。
他尝试在 main 函数中添加一个线程函数、但出现了上述错误报告。
如何处理这些问题?
此致、
Nick
尽管我仍然希望他们提供代码示例并按照建议尝试使用任务配置、但他们发现的问题的根源在于其 BLE 项目的配置文件(*。cfg 用于 TI-RTOS、*。syscfg 用于 TI-RTOS7)未启用 POSIX 配置。
/* ================ POSIX configuration ================ */ var Settings = xdc.useModule('ti.posix.tirtos.Settings'); if (Program.build.target.$name.match(/iar/)) { /* * For the IAR target, the 'ti.posix.tirtos.Settings' uses the * MultithreadSupport module. By default, the MultithreadSupport module * use the '--threaded_lib' library which provides a separate 'errno' * per thread and makes other rts libraries reentrant. This library has * a larger footprint which can be a problem for some apps, so we * override the default and disable it here. */ var MultithreadSupport = xdc.useModule('ti.sysbios.rts.iar.MultithreadSupport'); MultithreadSupport.enableMultithreadSupport = false; }
此致、
Ryan