将mcsdk_02_01_02_06下的omp_1_01_03_02文件夹拷贝之.\custom_openmp\文件夹里,将etc\config.bld拷贝至ti\packages目录下,修改后文件内容如下:
tools = "E:/ti/ccsv5/tools/compiler/c6000_7.4.4";
//Setup for c66 target
var C66 = xdc.useModule('ti.targets.elf.C66');
C66.rootDir = tools;
C66.ccOpts.suffix += " -mi10 -mo --omp --gcc -D__TI_USE_TLS";
C66.lnkOpts.prefix+=" --reread_libs ";
C66.lnkOpts.suffix =" -c -m $(XDCCFGDIR)/$@.map -l $(rootDir)/lib/rts6600_elf_mt.lib";
C66.platform = "ti.omp.examples.platforms.evm6678";
//list interested targets in Build.targets array
Build.targets = [ C66 ];
按照IPC rebuilding指导手册在命令行设置 set XDCPATH=%XDCPATH%;mcsdk_02_01_02_06/bios_6_##_##_##/packages
进行编译时提示如下错误:
======== .interfaces [./ti/omp/utils] ========
making package.mak (because of package.bld) ...
generating interfaces for package ti.omp.utils (because package/package.xdc.inc is older than package.xdc) ...
translating ThreadLocal
translating ThreadLocalStorage
translating SemaphoreMP
translating OpenMP
translating HeapOMP
"ti/omp/utils/SemaphoreMP.xdc", line 43: can't find imported unit: ti.sdo.ipc.SharedRegion (ti.sdo.ipc.SharedRegion)
error: compilation of package.xdc failed: parser failed
gmake[1]: *** [package/package.xdc.inc] Error 1
gmake[1]: *** [package/package.xdc.inc] Deleting file `package/package.defs.h'
gmake[1]: *** [package/package.xdc.inc] Deleting file `package/package_ti.omp.utils.c'
xdctools_3_23_04_60\gmake.exe: *** [ti/omp/utils,.interfaces] Error 2
这是需要在哪里添加有关ipc的信息?