工具使用之解决IAR for ARM版本不兼容问题

       IAR一直有一个诟病,如果版本升级后会出现版本不兼容问题,除非重新移植,网上有很多方法,但是都不怎么凑效,这里介绍一种亲测能用的方式。

    老版本:IAR for ARM 8.2......

    新版本:IAR for ARM 8.32......

    测试对象:CC1310的tirtos_cc13xx_cc26xx_2_21_00_06的SDK

更新了版本之后会有以下提示:

Building configuration: project - Debug 
Updating build tree... 
Performing Pre-Build Action 
Error while running "c:/ti/xdctools_3_32_00_06_core/xs"  
--xdcpath="c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/packages;c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/tidrivers_cc13xx_cc26xx_2_21_00_04/packages;c:/ti/tirto 
s_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/packages;c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/uia_2_01_00_01/packages" iar.tools.configuro  
-c "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.32\arm" --cc "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.32\arm\bin\ 
iccarm.exe" --device "CC1350F128" --compileOptions "dummy.c -o F:\CC1310TI-RTOS\test\Debug\Obj --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa  
--no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M3 -f F:\CC1310TI-RTOS\test/configPkg/compiler.opt.defs --diag_suppress=Pa050  
-Ic:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc13xxware_2_04_03_17272 -Dewarm --debug --silent -IF:\CC1310TI-RTOS\test/easylink -IF:\CC1310TI-RTOS\ 
test/smartrf_settings -e --fpu=None --dlib_config \"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.32\arm\inc\c\DLib_Config_Normal.h\" -Ol"  
--linkOptions "--no_out_extension -o F:\CC1310TI-RTOS\test\Debug\Exe\project.out --map F:\CC1310TI-RTOS\test\Debug\List\project.map --config F:\ 
CC1310TI-RTOS\test/project_CC1350_LAUNCHXL.icf -f F:\CC1310TI-RTOS\test/configPkg/linker.cmd  
c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc13xxware_2_04_03_17272/driverlib/bin/iar/driverlib.lib --silent --cpu=Cortex-M3 --entry=__iar_program_start  
--redirect _Printf=_PrintfSmall --redirect _Scanf=_ScanfSmall --semihosting --entry __iar_program_start --vfe --text_out locale" --profile release --projFile "F:\ 
CC1310TI-RTOS\test\project.ewp" 
 
Total number of errors: 1 
Total number of warnings: 0 

出现这个错误的解决方式就是把工程文件夹下的“configPkg”文件删掉,再重新编译就可以了

        完美解决版本不兼容问题

猜你喜欢

转载自blog.csdn.net/LinQiPing233/article/details/84645712