TI的所有工程,包括sensor controller studio生成的IAR工程、simple中2640的例程在内不能编译。
现象如下,将IAR的编译message设置成ALL,然后编译工程,会出现如下log
Building configuration: i2c_light_sensor_tirtos – DebugUpdating build tree…
Performing Pre-Build Action"C:\ti\xdctools_3_32_00_06_core/xs" –xdcpath="C:\ti\tirtos_cc13xx_cc26xx_2_20_00_06\products\bios_6_46_00_23\packages;C:\ti\tirtos_cc13xx_cc26xx_2_20_00_06\products\tidrivers_cc13xx_cc26xx_2_20_00_08\packages" iar.tools.configuro -c "D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.3\arm" –cc "D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.3\arm\bin\iccarm.exe" –device "CC2650F128"
–compileOptions "-D CC26XXWARE -D xdc_runtime_Assert_DISABLE_ALL -D xdc_runtime_Log_DISABLE_ALL –diag_suppress Pa050 -o E:\i2c_light_sensor_z\i2c_light_sensor\projects\iar_tirtos\Debug\Obj –no_cse –no_unroll –no_inline –no_code_motion –no_tbaa –no_clustering
–no_scheduling –debug –endian=little –cpu=Cortex-M3 -f E:\i2c_light_sensor_z\i2c_light_sensor\projects\iar_tirtos/configPkg/compiler.opt.defs -e
–fpu=None –dlib_config \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 7.3\arm\INC\c\DLib_Config_Normal.h\" -I C:\ti\tirtos_cc13xx_cc26xx_2_20_00_06\products\cc26xxware_2_24_02_17202\ -I C:\ti\tirtos_cc13xx_cc26xx_2_18_00_03\packages\ -I C:\ti\tirtos_cc13xx_cc26xx_2_18_00_03\products\tidrivers_cc13xx_cc26xx_2_16_01_13\packages\ti\boards\CC2650STK\ -I C:\ti\tirtos_cc13xx_cc26xx_2_18_00_03\products\tidrivers_cc13xx_cc26xx_2_16_01_13\packages\ -Ol" –linkOptions "-o E:\i2c_light_sensor_z\i2c_light_sensor\projects\iar_tirtos\Debug\Exe\i2c_light_sensor_tirtos.out –redirect _Printf=_PrintfFull –redirect _Scanf=_ScanfFull –config_def RTOS_ROM=1 –map E:\i2c_light_sensor_z\i2c_light_sensor\projects\iar_tirtos\Debug\List\i2c_light_sensor_tirtos.map –config C:\ti\tirtos_cc13xx_cc26xx_2_20_00_06\products\cc26xxware_2_24_02_17202\linker_files\cc26x0f128.icf -f E:\i2c_light_sensor_z\i2c_light_sensor\projects\iar_tirtos/configPkg/linker.cmd –semihosting C:\ti\tirtos_cc13xx_cc26xx_2_20_00_06\products\cc26xxware_2_24_02_17202\driverlib\bin\iar\driverlib.lib –entry __iar_program_start –vfe" –profile release
–projFile "E:\i2c_light_sensor_z\i2c_light_sensor\projects\iar_tirtos\i2c_light_sensor_tirtos.ewp"Using RTSC configuration file: E:/i2c_light_sensor_z/i2c_light_sensor/projects/iar_tirtos/rom.cfg…making package.mak (because of config.bld) …iar.targets.arm.M3: warning: exec of 'D:/Program Files (x86)/IAR Systems/Embedded Workbench 7.3/arm/bin/iccarm -v' failed:java.io.IOException: Cannot
run program "D:/Program" (in directory "."): CreateProcess error=193, %1 不是有效的 Win32 应用程序。; check tools installationiar.targets.arm.M3: warning: version match failed on ''iar.targets.arm.M3: warning: version match failed on ''iar.targets.arm.M3: warning: version match failed on ''iar.targets.arm.M3: warning: version match failed on ''configuring rom.xrm3 from package/cfg/rom_prm3.cfg …generating custom ROM library makefile …
Starting build of library sources …making E:/i2c_light_sensor_z/i2c_light_sensor/projects/iar_tirtos/src/sysbios/rom_sysbios.arm3 …gmake[1]: Entering directory `E:/i2c_light_sensor_z/i2c_light_sensor/projects/iar_tirtos/src/sysbios'Preprocessing library source files …C:/Users/RenZhe/AppData/Local/Temp/make996-2.sh: 1: Syntax error: "(" unexpectedC:/Users/RenZhe/AppData/Local/Temp/make996-3.sh: 1: Syntax error: "(" unexpectedC:/Users/RenZhe/AppData/Local/Temp/make996-4.sh: 1: Syntax error: "(" unexpectedC:/Users/RenZhe/AppData/Local/Temp/make996-5.sh: 1: Syntax error: "(" unexpectedC:/Users/RenZhe/AppData/Local/Temp/make996-6.sh: 1: Syntax error: "(" unexpectedC:/Users/RenZhe/AppData/Local/Temp/make996-7.sh: 1: Syntax error: "(" unexpectedC:/Users/RenZhe/AppData/Local/Temp/make996-8.sh: 1: Syntax error: "(" unexpectedgmake[1]: *** [rom_knl_Clock_lib.pp] Error 2gmake[1]: *** Waiting for unfinished jobs….gmake[1]: *** [rom_knl_Idle_lib.pp] Error 2gmake[1]: *** [rom_knl_Intrinsics_lib.pp] Error 2gmake[1]: *** [rom_knl_Event_lib.pp] Error 2gmake[1]: *** [rom_knl_Mailbox_lib.pp] Error 2gmake[1]: *** [rom_knl_Queue_lib.pp] Error 2gmake[1]: *** [rom_knl_Semaphore_lib.pp] Error 2
其中使用了D:/Program Files (x86)/IAR Systems/Embedded Workbench 7.3/arm/bin/iccarm -v' 这条命令,但是iccarm不支持-v参数,必须使用–version参数,导致XDC异常,请问我如果要将-v参数修改成–version需要在哪里修改呢?
da qin zheng sheng:
安装ble stack里边的工程可以编译成功不?
da qin zheng sheng:
另外建议用iar 7.4版本。