因学习项目需要,要在一个别人的项目上做些改动,但是stack怎么便宜都不行。不知道到哪里去下载这个“CC2640\Libraries\CC26xx\IAR\”。在下新手白丁一个,恳请各路大神帮助一把,在此拜谢了。
Building configuration: CC2640Stack – FlashROMUpdating build tree…Performing Pre-Build ActionC:\Projects\tracker-firmware\IAR\Stack\CC2640\TOOLS\LibSearch\LibSearch.exe C:\Projects\tracker-firmware\IAR\Stack\CC2640\buildConfig.opt C:\Projects\tracker-firmware\IAR\Stack\CC2640\TOOLS\LibSearch\params_split_cc2640.xml C:\Projects\tracker-firmware\IAR\Stack\CC2640\Libraries\CC26xx\IAR\ C:\Projects\tracker-firmware\IAR\Stack\CC2640\LIB\CC2640Stack.a FlashROM<<< ERROR >>>Cannot find input file "C:\Projects\tracker-firmware\IAR\Stack\CC2640\Libraries\CC26xx\IAR\"<<< /ERROR >>>Error while running C:\Projects\tracker-firmware\IAR\Stack\CC2640\TOOLS\LibSearch\LibSearch.exe C:\Projects\tracker-firmware\IAR\Stack\CC2640\buildConfig.opt C:\Projects\tracker-firmware\IAR\Stack\CC2640\TOOLS\LibSearch\params_split_cc2640.xml C:\Projects\tracker-firmware\IAR\Stack\CC2640\Libraries\CC26xx\IAR\C:\Projects\tracker-firmware\IAR\Stack\CC2640\LIB\CC2640Stack.a FlashROM
Total number of errors: 1Total number of warnings: 0
Butterfly:
SDK 要求对应的IAR版本以上吗? Stack不需要改动,默认指定IAR下编译都可以通过
例程位置有改动吗?
Viki Shi:
请提供你的IAR及SDK版本信息
Hadrian:
回复 Butterfly:
IAR EWARM 8.10.1
BLE SDK ble_sdk_2_02_01_18
我想问下编译Application之前是否一定要先编译Stack?
Stack具体是起什么作用的呢?
怎么能在别人的project里找到它所用的所有library和SDK的版本号(如果问不到作者本人的话)?
另外,Pre-build option中用了LibSearch.exe,它的参数中有“$PROJ_DIR$\Libraries\CC26xx\IAR\”。但是我在所有的文件夹中都找不到这个“Libraries”文件夹。
(我是零基础小白。。。)
Viki Shi:
回复 Hadrian:
这个版本符合要求了。零基础的话, 建议根据C:\ti\simplelink\ble_sdk_2_02_01_18\docs里的文档操作,尤其是SWRU393_CC2640_BLE_Software_Developer's_Guide
Hadrian:
回复 Viki Shi:
Hi Viki,
现在的编译Application的build message如下:
warning: xdc.cfg.Program: "C:/ti/tirtos_simplelink_2_13_01_09/products/bios_6_42_00_08/packages/ti/sysbios/hal/Hwi.xs", line 181: xdc.cfg.Program stack: For IAR targets, Program.stack is ignored. The C and Hwi stack sizes are determined by the size of the CSTACK section definition within the linker command file. generating custom ROM library makefile … Starting build of library sources … making C:/Workplace/tracker-firmware/IAR/Config/src/sysbios/sysbios.arm3 … gmake[1]: Entering directory `C:/Workplace/tracker-firmware/IAR/Config/src/sysbios' Preprocessing library source files … Creating the SYS/BIOS library that contains the APIs not included in the ROM … __TA_xdc_runtime_Error_Data__arg arg; "C:/ti/xdctools_3_31_01_33_core/packages/xdc/runtime/Error.h",85 Error[Pe1061]: declaration of field "arg" is incompatible with a declaration in another translation unit field "xdc_IArg [2] arg" (declared at line 85) (from translation unit "mangled_ti.sysbios.BIOS_config_lib.pp") field "xdc_IArg [2] arg" (declared at line 85) (from translation unit "mangled__BIOS_lib.pp") detected during compilation of secondary translation unit "mangled_ti.sysbios.BIOS_config_lib.pp" xdc_runtime_Types_Site site; "C:/ti/xdctools_3_31_01_33_core/packages/xdc/runtime/Error.h",97 Error[Pe1061]: declaration of field "site" is incompatible with a declaration in another translation unit field "xdc_runtime_Types_Site site" (declared at line 97) (from translation unit "mangled_ti.sysbios.BIOS_config_lib.pp") field "xdc_runtime_Types_Site site" (declared at line 97) (from translation unit "mangled__BIOS_lib.pp") detected during compilation of secondary translation unit "mangled_ti.sysbios.BIOS_config_lib.pp"xdc_runtime_Types_Label *(*__label)(xdc_Ptr, xdc_runtime_Types_Label*);
然后是一堆类似的error,最后说:
Fatal error[Ms016]: Error limit reached Fatal error detected, aborting. gmake[1]: *** [mangled__BIOS_lib.obj] Error 2 gmake: *** [C:/Workplace/tracker-firmware/IAR/Config/src/sysbios/sysbios.arm3] Error 2 error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_31_01_33_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_31_01_33_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed! xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/appBLE_prm3.xdl] Error 1 xdctools_3_31_01_33_core\gmake.exe: *** Deleting file `package/cfg/appBLE_prm3.xdl' xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/appBLE_prm3.xdl] Deleting file `package/cfg/appBLE_prm3.h' xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/appBLE_prm3.xdl] Deleting file `package/cfg/appBLE_prm3.c' js: "C:/ti/tirtos_simplelink_2_13_01_09/products/bios_6_42_00_08/packages/iar/tools/configuro/Main.xs", line 93: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted. Error while running "C:\ti\xdctools_3_31_01_33_core/xs" –xdcpath="C:\ti\tirtos_simplelink_2_13_01_09\products\bios_6_42_00_08\packages" iar.tools.configuro -c "C:\EWARM\arm" –cc "C:\EWARM\arm\bin\iccarm.exe" –device "CC2640F128" –compileOptions
Viki Shi:
回复 Hadrian:
在工程的目录里有个configPkg文件夹,下有error.log,对照下看看是什么错误
个人觉得还是编译器或者系统的问题,建议重装一下或者换台电脑试试,而且软件及TI例程建议都安装在默认路径,不要改动