微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > CC2650开发板写完程序不工作

CC2650开发板写完程序不工作

时间:10-02 整理:3721RD 点击:

IAR 版本为7.40

SDK为ble_cc26xx_setupwin32_2_01_00_44423

IAR 安装路径D:\IAR FOR ARM7.40.5

ble_cc26xx_setupwin32_2_01_00_44423安装路径全选的默认路径

开发板为TI 官方开发板SmartRF06EB  Rev:1.2.2

评估板也是TI官方版:CC2650EM-7ID Rev:1.2.6

Flash Programmer 2 识别CC2650芯片Rev 为2.1

现在按照SimpleLink™ Bluetooth® low energy CC2640 wireless MCU Software Developer’s Guide文档上关于IAR调试环境的设置打开simpleBLEPeripheral例程

现在写完Stack和App后,LightBlue检测不到任何数据,开发板LCD也没有亮,调试的时候,选择Downlod and Debug后,直接全速运行,暂停后,代码停

void
ThisCodeIsBuiltForCC26xxHwRev22AndLater_HaltIfViolated( void )
{
if (( ! ChipInfo_ChipFamilyIsCC26xx() ) ||
( ! ChipInfo_HwRevisionIs_GTEQ_2_2() ) )
{
while(1)
{
//
// This driverlib version is for CC26xx PG2.2 and later
// Do nothing - stay here forever
//
}
}
}

在main 函数中打断点也不执行,这个好像是在main之前执行的代码,也无法跟踪

请问,这个是什么原因啊!

inner,

2650EM 1.2.6如你flash programmer查询到的是PG2.1的芯片,是量产版之前的芯片,而新的SDK2.1你下载到的是专门给量产版本的PG2.2之后的芯片用的。

可以尝试一下如下方法,当初是为了让SDK2.0能在PG2.1芯片上使用的:

CC2640 RTK SDK2.0支持PG2.1 IC, 修改方法如下。但是切记嘱咐客户将原来的SDK保存一份,后续如果用PG2.2的话,还需要复原工程。

 

http://e2e.ti.com/support/wireless_connectivity/f/538/t/404236

Q: I am using pre-release silicon (Rev2.0 or Rev2.1) and my software does not run. When I stop the CPU is stopped in a function called hisCodeIsBuiltForCC26xxHwRev22AndLater_HaltIfViolated. What is wrong?

A:

The default CC26XXWARE path to setup files / drivers is set to support release material (Rev2.2). To run the software on older material this variable needs to be changed.

IAR:

  • Goto Tools->Configure Customer Argument Variables-->CC26xx TI-RTOS-->CC26XXWARE

Modifiy CC26XXWARE

  • From: C:\ti\tirtos_simplelink_2_11_01_09\products\cc26xxware_2_20_06_14829
  • To  C:\ti\tirtos_simplelink_2_11_01_09\products\cc26xxware_2_00_06_14829
  • Delete OS kernel libraries folder: IAR\Application\CC2640\configPkg
  • Delete OS kernel source build folder: IAR\Config\src
  • Close workspace and re-open for changes to take effect

CCS:

  • Right-click project, Select Properties
  • Goto Resource->Linked Resources
  • Follow the above instructions

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top