一 、现象 :
在使用IAR通过JLink 方式进行download程序的时候,会出现以下的错误信息:
Fatal error: Option:--drv_communication defined more than once Session aborted!
截图的提示信息:
![](http://oe463wxh8.bkt.clouddn.com/IARerror1.png?imageView2/2/h/200/q/100)
![](http://oe463wxh8.bkt.clouddn.com/IARerror2.png?imageView2/2/h/200/q/100)
二、环境:
IAR版本: ARM 7.80.4
BLE协议栈版本:simplelink_cc2640r2_sdk_1_30_00_25
三、配置信息:
![](http://oe463wxh8.bkt.clouddn.com/IARtishi0.png?imageView2/2/h/400/q/100)
![](http://oe463wxh8.bkt.clouddn.com/IARtishi1.png?imageView2/2/h/400/q/100)
![](http://oe463wxh8.bkt.clouddn.com/IARtishi2.png?imageView2/2/h/400/q/100)
![](http://oe463wxh8.bkt.clouddn.com/IARtishi4.png?imageView2/2/h/400/q/100)
四、解决:
Debugger->Extra Options->Use command line options 去掉
![](http://oe463wxh8.bkt.clouddn.com/IARtishi8.png?imageView2/2/h/400/q/100)