编译官方源码出错,网上说的编译器的环境变量冲突~~CCS还需要添加一些环境变量吗?
错误如下: Build of libraries failed. TOOLS/subdir_rules.mk:7: recipe for target 'configPkg/linker.cmd' failed gmake[1]: *** No rule to make target `C:/Users/user/workspace_v6_1_5/SimpleBLEPeripheral/FlashROM/configPkg/package/cfg/ti.sysbios.BIOS_config.c', needed by `mangled_ti.sysbios.BIOS_config_lib.pp'. Stop. gmake[1]: *** Waiting for unfinished jobs.... gmake: *** [C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/src/sysbios/sysbios.aem3] Error 2 error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_32_00_06_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2: js: "C:/ti/xdctools_3_32_00_06_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed! xdctools_3_32_00_06_core\gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Error 1 xdctools_3_32_00_06_core\gmake.exe: *** Deleting file `package/cfg/appBLE_pem3.xdl' xdctools_3_32_00_06_core\gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Deleting file `package/cfg/appBLE_pem3.h' xdctools_3_32_00_06_core\gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Deleting file `package/cfg/appBLE_pem3.c' js: "C:/ti/xdctools_3_32_00_06_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted. gmake: *** [configPkg/linker.cmd] Error 1 gmake: Target 'all' not remade because of errors. **** Build Finished **** 然后网上说是编译器的系统环境变量有冲突,官方wiki这样说 Take a close look at the CCS build console and ensure that the sh.exe used for the build is the one from the CCS directory. Also check your system PATH variable and see if there is another sh.exe (or gmake.exe) in your system PATH earlier than the one from the CCS installation. These could also be part of other tools like cygwin or WinAVR. If there is one, then that will be used for the build and could cause build errors such as this. In this case, remove those conflicting tools from the system PATH or modify the PATH so that the sh.exe and gmake.exe from CCS are seen first. 问题是我的系统环境变量没发现有冲突的啊~~ 有没有大神教下要添加哪些环境变量~~谢谢啦~
可以试下以下办法,可能会减少错误:
1,安装和运行时均保证杀毒软件关闭了
2,ccs和官方ble_sdk_2_02_00_31_setup.exe都按默认路径安装在c盘
3,在编译选项里,将Compiler version调整为TI v15.12.1.LTS
自带的例程:
编译器: Code Composer Studio Version: 6.1.3.00034
协议栈:ble_cc26xx_2_01_01_44627
芯片:CC2640F128 5X5封装的
原例程是针对7x7封装做的端口初始化,只更改了一下端口初始化的地方,其它地方没有修改,编译通过,没有其它问题,下载到板子也没有问题