创建工程的过程如图所示
建立完成后在main.c中添加头文件
#include <ti/sysbios/gates/GateHwi.h>
#include <ti/sysbios/gates/GateMutex.h>
cfg文件中添加:
var GateHwi = xdc.useModule('ti.sysbios.gates.GateHwi');
var GateMutex = xdc.useModule('ti.sysbios.gates.GateMutex');
编译错误如下:
<Linking>
undefined first referenced symbol in file ——— —————- ti_sysbios_gates_GateHwi_query__E E:\CCSProject\TestPro\Debug\configPkg\package\cfg\app_pe66.oe66
ti_sysbios_gates_GateMutex_query__E E:\CCSProject\TestPro\Debug\configPkg\package\cfg\app_pe66.oe66
>> Compilation failure
makefile:139: recipe for target 'TestPro.out' failed
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "TestPro.out" not built
gmake: *** [TestPro.out] Error 1
gmake: Target 'all' not remade because of errors.
请问为什么会有这样的错误?
Chris Meng:
Cui Yongshan,
你使用的sysbios/TI RTOS/C6000编译/XDC的版本是匹配的么?
Yongshan Cui:
回复 Chris Meng:
Chris Meng
您好 ,感谢您的回复!
还需要请教一下如何判断版本是匹配的呢?
Chris Meng:
回复 Yongshan Cui:
Cui Yongshan,
我看你选择了TI RTOS for C6000,这个软件的release note里面有有写这个软件是基于那些其他软件测试验证的,请尝试同样的版本。