原创 【博客大赛】TI CC26xx BLE协议栈之诡异经历

2015-9-1 11:35 2933 17 22 分类: MCU/ 嵌入式

起一个骇人听闻的标题不是为了吸引眼球,而是正的让人觉得挺诡异。

昨天安装好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的设置,只改了一处设置:

20150901113508893.jpg

这样可以使编译的log全部都显示出来,但是还是没有找到如何解决这个问题。

 

就这样从8月折腾到9月,本来想联系TIFAE,决定先去TI的官方论坛找一下,果然,有很多人在问这个问题。我之所以说很诡异,是因为TIFAE在线的解答是重新安装下TI的协议栈!而FAE也不清楚为什么!

所以我重新安装了,现在好用了,可以编译了。但还是感觉很诡异。

 

文章评论5条评论)

登录后参与讨论

用户1560233 2015-11-21 16:02

我的台式机没这个问题,笔记本有这个问题。笔记本上IAR和协议栈重装了好几次了,一直没能解决这个问题,很奇怪。

2005jiangxu_694877046 2015-9-7 13:32

原来如此!谢谢分享!

用户593939 2015-9-5 22:32

学习和参考了

besk_671167922 2015-9-5 11:54

WINDOWS 下有些文件安装顺序不一样,会替换掉。重装的话,就是指认那个版本的。很正常的。

东莞元宝代理Microchip长电二三极管 2015-9-2 12:57

技术大牛啊!
相关推荐阅读
飞言走笔 2017-01-06 21:56
2017,新的博客旅程
EDNChina 改版终于成功了!祝贺! 2017年,开始新的旅程~ ...
飞言走笔 2016-06-01 10:17
【博客大赛】《白鹿原》读后
《白鹿原》这本书已经买了很久,多次以来,都是只翻看几页,顶多几章就放下了,觉得这是一个大部头,得有足够的时间才行。前几天陈忠实先生去世的消息传来,让我很震惊和惭愧。 一口气读完这本书,畅快淋漓,又意...
飞言走笔 2016-03-26 16:42
【博客大赛】《毛斯朝》读后
这本书最早是在凤凰卫视曾子墨主持的一期关于沈志华先生的《世纪大讲堂》节目中知晓的。但是一直拖到今天才读完。 说实话,书的主要内容与当前官方的宣传口径有很多不一致的地方,而沈先生作为中国掌握苏联档...
飞言走笔 2016-03-08 13:46
【博客大赛】蓝牙4.0低功耗技术及其认证要求
详见附件 ...
飞言走笔 2016-02-02 14:20
【转】蓝牙4.0协议官方手册(一)——通用属性配置文件
转自:http://blog.csdn.net/jinzhichaoshuiping/article/details/43370009 通用属性配置文件 (GATT)——该说明书定义了通用属性配置...
飞言走笔 2016-01-31 23:24
【博客大赛】脑洞大开、三观重塑——《人类简史》读后
终于读完了《人类简史》,没有把这本书拖到二月份,这也是2016年读完的第一本书。之前也有所耳闻,但是没有太在意,倒是罗胖子的跨年演讲上偶然提到,不知怎么就勾起了阅读此书的欲望。 本文的标题用了“脑洞...
我要评论
5
17
关闭 站长推荐上一条 /2 下一条