Part Number:LAUNCHXL-CC1312R1Other Parts Discussed in Thread:CC2650, SYSCONFIG, CC2652RB
使用IAR编译官方工程报错:
[Su012]: Option --cpu does not match previous occurrence Hat line 1h D:\110_Work_ProductsResearch\WorkSpace\abc\Debug\Exe\adcbufcontinuous_CC1312R1_LAUNCHXL_tirtos_iar.out.rsp 1
完整的错误代码为:
“`
adcbufcontinuous_CC1312R1_LAUNCHXL_tirtos_iar – Debug Reading project nodes… Pre-build command IAR Command Line Build Utility V9.1.1.9611 Copyright 2002-2022 IAR Systems AB. tirtos_builds_CC1312R1_LAUNCHXL_release – Debug Reading project nodes… Pre-build command "cmd.exe /C" "cd c:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78\kernel\tirtos\builds\CC1312R1_LAUNCHXL\release\iar && "c:/ti/xdctools_3_61_00_16_core/xs" –xdcpath="c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/kernel/tirtos/packages;c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source" iar.tools.configuro -o c:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78\kernel\tirtos\builds\CC1312R1_LAUNCHXL\release\iar/../iar -c "E:\Tools\IARSystems\EmbeddedWorkbench91\arm" –cc "E:\Tools\IARSystems\EmbeddedWorkbench91\arm\bin\iccarm.exe" –device "CC1312R1F3" –compileOptions "-o c:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78\kernel\tirtos\builds\CC1312R1_LAUNCHXL\release\iar\Debug\Obj\ –no_cse –no_unroll –no_inline –no_code_motion –no_tbaa –no_clustering –no_scheduling –debug –endian=little –cpu=Cortex-M4 -DDeviceFamily_CC13X2 -e –fpu=VFPv4_sp –dlib_config E:\Tools\IARSystems\EmbeddedWorkbench91\arm\inc\c\DLib_Config_Normal.h -Ol" –linkOptions "–create -o c:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78\kernel\tirtos\builds\CC1312R1_LAUNCHXL\release\iar\Debug\Exe\tirtos_builds_CC1312R1_LAUNCHXL_release.a" –profile release –projFile "c:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78\kernel\tirtos\builds\CC1312R1_LAUNCHXL\release\iar\tirtos_builds_CC1312R1_LAUNCHXL_release.ewp"" Using RTSC configuration file: c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/kernel/tirtos/builds/CC1312R1_LAUNCHXL/release/iar/../release.cfg… Total number of errors: 0 Total number of warnings: 0 Build succeeded adcbufcontinuous_CC1312R1_LAUNCHXL_tirtos_iar.out [Su012]: Option –cpu does not match previous occurrence Hat line 1h D:\110_Work_ProductsResearch\WorkSpace\abc\Debug\Exe\adcbufcontinuous_CC1312R1_LAUNCHXL_tirtos_iar.out.rsp 1 Total number of errors: 1 Total number of warnings: 0 Build failed
“`
IAR版本:
SDK版本:
user5959626:
我发现出现了2个–cpu选项,两个值还不一样
c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/kernel/tirtos/packages/ti/dpl/lib/dpl_cc26x2.arm4f –silent –cpu=Cortex-M4F –semihosting –entry __iar_program_start –vfe –text_out locale –cpu=Cortex-M4 –fpu=VFPv4_sp
–cpu=Cortex-M4F
–cpu=Cortex-M4
为什么会出现这种情况,我能做什么操作解决它吗?
“`
D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\iCallBLE\ble_user_config.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Startup\ble_user_config_stack.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Profiles\button_service.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Startup\CC2652RB_LAUNCHXL_fxns.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Drivers\NV\crc.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\OAD\crc32.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Profiles\data_service.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Profiles\devinfoservice.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\OAD\flash_interface_ext_rtos_NVS.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Profiles\gatt_uuid.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Profiles\gattservapp_util.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\iCall\icall.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\iCallBLE\icall_api_lite.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\iCall\icall_cc2650.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\iCall\icall_user_config.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Profiles\led_service.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Startup\main.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Drivers\NV\nvocmp.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\OAD\oad.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\OAD\oad_image_header_app.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Startup\osal_icall_ble.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Application\project_zero.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Startup\rom_init.o "D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\SysConfig Generated Files\ti_ble_config.o" "D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\SysConfig Generated Files\ti_drivers_config.o" "D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\SysConfig Generated Files\ti_radio_config.o" D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Startup\UartLog.o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Obj\project_zero\Application\util.o –no_out_extension -o D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\Exe\project_zero_CC2652RB_LAUNCHXL_tirtos_iar.out –map D:\110_Work_ProductsResearch\WorkSpace\zero\zero\Debug\List\project_zero_CC2652RB_LAUNCHXL_tirtos_iar.map –config c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/examples/rtos/CC2652RB_LAUNCHXL/ble5stack/project_zero/tirtos/iar/cc26xx_app_and_stack_agama.icf -f D:\110_Work_ProductsResearch\WorkSpace\zero\zero/configPkg/linker.cmd –keep __vector_table c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack/libraries/cc26x2r1/OneLib.a c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack/libraries/cc26x2r1/ble_r2.symbols c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack/libraries/cc26x2r1/StackWrapper.a -fc:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/examples/rtos/CC2652RB_LAUNCHXL/ble5stack/project_zero/Tools/Defines/config_def.opt c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/devices/cc13x2_cc26x2/driverlib/bin/iar/driverlib.lib c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/drivers/lib/drivers_cc26x2.arm4f c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/drivers/rf/lib/rf_multiMode_cc26x2.arm4f c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/display/lib/display.arm4f c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/grlib/lib/iar/m4f/grlib.a c:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/kernel/tirtos/packages/ti/dpl/lib/dpl_cc26x2.arm4f –silent –cpu=Cortex-M4F –semihosting –entry __iar_program_start –vfe –text_out locale –cpu=Cortex-M4 –fpu=VFPv4_sp
“`
,
user5959626:
好了,问题解决了!
,
user5959626:
这种方法不可行
,
user5959626:
问题真的解决了,IAR版本过高导致的,降回到8.32就不会自动添加–cpu=Cortex-M4选项了。