cc debugger 与 smartrfo4eb 有什么区别

cc debugger 与 smartrfo4eb 有什么区别,第1张

焦点问题1:CC-Debugger仿真器和SmartRF04EB仿真器的区别?

答:该问题几乎是所有打算购买CC-Debugger仿真器用户的第一个问题,区别非常大,但是可以总结为下面三个方面

1、所支持的芯片差异

A) SmartRF04EB实测后支持的芯片有CC2430、CC2530、CC2531、CC2540,不支持CC2541

B) CC-Debugger支持的芯片非常之多,除了和04eb相同的仿真及下载功能外,还可以通过SPI总线控制CC系列的收发器。

2、能够连接的目标板电压不同

A) SmartRF04EB仿真器只能链接3.3V目标板电压,如果强行连接非3.3V接口,可能会烧坏芯片。仿真器目标接口的第2脚和第9脚是相同的,电压是3.3V

B) CC-debugger仿真器则支持宽目标板电压,从1.2V到3.6V均支持,为什么CC-Debugger能够支持这么宽的目标电压呢,这是因为CC-Debugger与目标芯片之间加了信号电平转换芯片:SN74AVC4T245DR。

3、所具有的的功能不同

A) 我们的SmartRF04EB只有仿真器的功能,如通过IAR软件在线仿真单步调试,以及通过Flash Programmer直接烧写hex文件,

B) CC-Debugger除了具有和SmartRF04EB相同的功能外,还有具有协议分析的功能

使用CC-Debugger作为协议分析仪和独立的USBDongle协议分析仪有些区别,CC25xxUSBDongle作为协议分析仪时,独立工作,只需连接USB,就可以通过PacketSniffer抓包

而使用CC-Debugger用来协议分析时,需要连接目标芯片,连接的接口如上图,必须要接SPI。

焦点问题3:CC-Debugger无法识别目标芯片?

答:到目前为止,用户反映的不识别的情况只有下面三种:

1、没有向CC-Debugger放着器目标接口 第2脚提供Target Voltage,没有电压的愿意有两种,一个是你的板子没有供电,第二个就是你的板子debugger接口的第2脚没有接VCC。详情参加焦点问题1

如果你用的不是标准的10Pin,而是只有DC DD RESET GND四个信号,开发板无法提供连接VCC时,可以用杜邦线将CC-Debugger目标接口的第2脚和第9脚短接,自己对自己供电。

2、你自己做的板子存在虚焊,CC2540等CC系列的芯片通常是QFN封装,这种封装手工焊时非常容易出现虚焊。

3、忘记按复位按键,连接目标板之后,记住一定要按复位按键,然后仿真器识别到目标芯片后,再进行下一步 *** 作。

焦点问题3:如何安装驱动,支持64位系统吗?

答:CC-Debugger是支持Win7 64位系统的,有对应的驱动程序。

安装下列软件会自动安装CC-Debugger驱动:

SmartRF Studio、Flash Programmer、IAR For 8051、PacketSniffer等。如果软件已经安装,CC-Debugger驱动仍未能成功安装时,请到设备管理器中,右击带黄色感叹号的CC-Debugger,手动更新驱动程序,

Flash Programmer软件自带的驱动程序位于(默认路径):C:\Program Files\Texas Instruments\SmartRF Tools\Drivers\cebal

IAR For 8051软件自导的驱动程序位于(默认路径):C:\Program Files\IAR Systems\Embedded Workbench 6.0\8051\drivers\Texas Instruments

准备工作

一台 PC

IAR Embedded Workbench 集成开发环境,可以用30天试用版本。

支持 蓝牙 4.0 的智能手机一部,并安装下列应用之一

Android Google Play Store.

iPhone App Store.

CC2540 开发板

CCDebugger 下载器

创建 iBeacon 工程文档

安装 TI 官方的 CC254x 开发环境

复制 C:\Texas Instruments\BLE-CC254x-1.3.2\Projects\ble\SimpleBLEBroadcaster 文件夹

粘贴到:C:\Texas Instruments\BLE-CC254x-1.3.2\Projects\ble\iBeacon

运行 IAR Embedded Workbench,点击 File >Open >Workspace

修改源代码

simpleBLEBroadcaster.c

// GAP - Advertisement data (max size = 31 bytes, though this is

// best kept short to conserve power while advertisting)

static uint8 advertData[] =

{

// Flagsthis sets the device to use limited discoverable

// mode (advertises for 30 seconds at a time) instead of general

// discoverable mode (advertises indefinitely)

0x02, // length of this data

GAP_ADTYPE_FLAGS,

GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,

// three-byte broadcast of the data "1 2 3"

0x04, // length of this data including the data type byte

GAP_ADTYPE_MANUFACTURER_SPECIFIC, // manufacturer specific advertisement data type

1,

2,

3

}

修改下面关键字

UID: E2C56DB5-DFFB-48D2-B060-D0F5A71096E0

Major: 1 (0x0001)

Minor: 1 (0x0001)

Measured Power: -59 (0xc5)

// GAP - Advertisement data (max size = 31 bytes, though this is

// best kept short to conserve power while advertisting)

static uint8 advertData[] =

{

// 25 byte ibeacon advertising data

// Preamble: 0x4c000215

// UUID: E2C56DB5-DFFB-48D2-B060-D0F5A71096E0

// Major: 1 (0x0001)

// Minor: 1 (0x0001)

// Measured Power: -59 (0xc5)

0x1A, // length of this data including the data type byte

GAP_ADTYPE_MANUFACTURER_SPECIFIC, // manufacturer specific advertisement data type

0x4c,

0x00,

0x02,

0x15,

0xe2,

0xc5,

0x6d,

0xb5,

0xdf,

0xfb,

0x48,

0xd2,

0xb0,

0x60,

0xd0,

0xf5,

0xa7,

0x10,

0x96,

0xe0,

0x00,

0x01,

0x00,

0x01,

0xc5

}

接下来修改广播类型,将下面代码

//uint8 advType = GAP_ADTYPE_ADV_NONCONN_IND// use non-connectable advertisements

uint8 advType = GAP_ADTYPE_ADV_DISCOVER_IND// use scannable unidirected advertisements

修改为

uint8 advType = GAP_ADTYPE_ADV_NONCONN_IND // use non-connectable advertisements

//uint8 advType = GAP_ADTYPE_ADV_DISCOVER_IND// use scannable unidirected advertisements

接下来修改 GAP

// Set the GAP Role Parameters

GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &initial_advertising_enable )

GAPRole_SetParameter( GAPROLE_ADVERT_OFF_TIME, sizeof( uint16 ), &gapRole_AdvertOffTime )

GAPRole_SetParameter( GAPROLE_SCAN_RSP_DATA, sizeof ( scanRspData ), scanRspData )

GAPRole_SetParameter( GAPROLE_ADVERT_DATA, sizeof( advertData ), advertData )

GAPRole_SetParameter( GAPROLE_ADV_EVENT_TYPE, sizeof( uint8 ), &advType )

因为 iBeacon 必须不间断广播,并且不响应任何数据请求,所以我们要修改 GAPROLE_ADVERT_OFF_TIME 和 GAPROLE_SCAN_RSP_DATA。

// Set the GAP Role Parameters

GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &initial_advertising_enable )

//GAPRole_SetParameter( GAPROLE_ADVERT_OFF_TIME, sizeof( uint16 ), &gapRole_AdvertOffTime )

//GAPRole_SetParameter( GAPROLE_SCAN_RSP_DATA, sizeof ( scanRspData ), scanRspData )

GAPRole_SetParameter( GAPROLE_ADVERT_DATA, sizeof( advertData ), advertData )

GAPRole_SetParameter( GAPROLE_ADV_EVENT_TYPE, sizeof( uint8 ), &advType )

保存工程后,进行编译,并通过 CCDebugger 下载程序到开发板中。

Select Project >Clean to clean the project.

Select Project >Make to make the project.

Select Project >Download and Debug to send the code to the CC2540 Key Fob

Select Debug >Go to Run the code on the CC2540 Key Fob.

BLE iBeacon

TI Displayport ESD Protection – TPD8S009

Arduino SPI 精华课程

TAGS

Arduino Arduino Due Arduino Esplora Atmega32u4 Atmel BacklightBMP085 Bootloader CC3x00 DatasheetDisplayport EasyDriver EDID eDPEsplora HDMI HMC5883L I2CJoystick LCD LED Luban LVDS MIPIMPU6050 MySQL Nginx PCB PHP pinModePWM PX4 Raspberry Pi RGB Sensor SPIStepper Motor Ubuntu Wifi 摇杆 树莓派步进电机 电源 背光 蓝牙

CATEGORIES

3D Printer

Android

Application Notes

Arduino

AVR

Backlight Driver

C

CC3x00

Datasheet

Development Environment

HDMI

Imaging &Graphics

iOS

Javascript

LCD/LCM

Material

Others

PCB Design

Power Management

Prototyping

Raspberry Pi

Rostock

Sensor

Server

Software

STM32

Super Manual

Tutorials

Work


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/8084062.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-13
下一篇 2023-04-13

发表评论

登录后才能评论

评论列表(0条)

保存