起一个骇人听闻的标题不是为了吸引眼球,而是正的让人觉得挺诡异。
昨天安装好IAR for ARM,安装好了TI最新的BLE协议栈,v2.1.0. 因为TI新的BLE芯片CC26xx使用了ARM Cortex-M3内核,这样连带着协议栈也升级了,不再是使用之前的OSAL,而是使用了TI-RTOS.
这些安装好了之后,直接打开TI的例程,在编译的时候,报了这样的错误:
以下是代码片段: |
Error while running "C:\ti\xdctools_3_31_01_33_core/xs" --xdcpath="C:\ti\tirtos_simplelink_2_13_00_06\products\bios_6_42_00_08\packages" iar.tools.configuro -c
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.2\arm" --cc "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.2\arm\bin\iccarm.exe" --device "CC2640F128" --compileOptions "-D USE_ICALL -D POWER_SAVING -D HEAPMGR_SIZE=2672 -D TI_DRIVERS_SPI_DMA_INCLUDED -D TI_DRIVERS_LCD_INCLUDED -D ICALL_MAX_NUM_TASKS=3 -D ICALL_MAX_NUM_ENTITIES=6 -D xdc_runtime_Assert_DISABLE_ALL -D xdc_runtime_Log_DISABLE_ALL -D CC26XXWARE -D CC26XX --diag_suppress Pa050 -o D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\ Application\CC2640\FlashROM\Obj\ --debug --endian=little --cpu=Cortex-M3 -f D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\CC2640\..\..\..\ ..\..\..\..\Projects\ble\config\buildComponents.opt -f D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\CC2640\configPkg\compiler.opt.defs -f D:\ ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\CC2640\..\..\Config\IAR-Boundary.bdef -e --fpu=None --dlib_config \"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.2\arm\INC\c\DLib_Config_Normal.h\" -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\CC2640\ -I D:\ ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\CC2640/../../../Source/Application\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\ CC26xx\IAR\Stack\CC2640/../../../../../../../Projects/ble/Include\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/ICall/Include\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/Profiles/Roles/CC26xx\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/Profiles/Roles\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/Profiles/DevInfo\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/Profiles/Proximity/CC26xx\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/Profiles/Proximity\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/Profiles/Batt/CC26xx\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/Profiles/Accelerometer/CC26xx\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/Profiles/Accelerometer\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/Profiles/Keys/CC26xx\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/Profiles/Keys\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/Profiles/HidDev/CC26xx\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Projects/ble/common/cc26xx\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Components/applib/heap\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\CC2640/../../../../../../../Components/ble/hci\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\CC2640/../../../../../../../Components/ble/controller/CC26xx/include\ -I D:\ ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\CC2640/../../../../../../../Components/ble/host\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\ KeyFob\CC26xx\IAR\Stack\CC2640/../../../../../../../Components/hal/target/CC2650TIRTOS\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Components/hal/target/_common/cc26xx\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Components/hal/include\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Components/osal/include\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Components/services/sdata\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Components/services/saddr\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Components/icall/include\ -I D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\ CC2640/../../../../../../../Components/ble/include\ -I C:\ti\tirtos_simplelink_2_13_00_06\products\cc26xxware_2_21_01_15600\ -I C:\ti\tirtos_simplelink_2_13_00_06\ packages\ -I C:\ti\tirtos_simplelink_2_13_00_06\packages\ti\boards\SRF06EB\CC2650EM_7ID\ -Ohz" --linkOptions "-o D:\ble_cc26xx_2_01_00_44423\Projects\ble\ KeyFob\CC26xx\IAR\Application\CC2640\FlashROM\Exe\KeyFobDemoAppFlashROM.out --map D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\ Application\CC2640\FlashROM\List\KeyFobDemoAppFlashROM.map --config D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\CC2640\..\..\ ..\..\..\common\cc26xx\IAR\cc26xx_ble_app.icf --keep __vector_table -f D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\CC2640\configPkg\ linker.cmd -f D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Stack\CC2640\..\..\Config\IAR-Boundary.xcl C:\ti\tirtos_simplelink_2_13_00_06\ products\cc26xxware_2_21_01_15600\driverlib\bin\iar\driverlib.lib C:\ti\tirtos_simplelink_2_13_00_06\packages\ti\drivers\lib\drivers_cc26xxware.arm3 --entry __iar_program_start --vfe" --profile release --projFile "D:\ble_cc26xx_2_01_00_44423\Projects\ble\KeyFob\CC26xx\IAR\Application\CC2640\CC2640App.ewp"
Total number of errors: 1 Total number of warnings: 0 |
仔细读了官方文档SWRU393_CC2640_BLE_Software_Developer's_Guide,里面第2.5.2节有关于IAR方面的使用,我认真比对了IAR的设置,只改了一处设置:
这样可以使编译的log全部都显示出来,但是还是没有找到如何解决这个问题。
就这样从8月折腾到9月,本来想联系TI的FAE,决定先去TI的官方论坛找一下,果然,有很多人在问这个问题。我之所以说很诡异,是因为TI的FAE在线的解答是重新安装下TI的协议栈!而FAE也不清楚为什么!
所以我重新安装了,现在好用了,可以编译了。但还是感觉很诡异。
用户1560233 2015-11-21 16:02
2005jiangxu_694877046 2015-9-7 13:32
用户593939 2015-9-5 22:32
besk_671167922 2015-9-5 11:54
东莞元宝代理Microchip长电二三极管 2015-9-2 12:57