CC2540 Bluetooth Low Energy Mini Development Kit Set up
Really excited to receive the CC2540DK-MINI I ordered from Digikey. It only took a few days to ship from US to HK.
I thought it would be pretty easy to set up and start working on it. But there were always some small dumb problems during the process. After spending a lot of time reading forums and blogs, I could finally get this to work.
1) Install TI BLE Stack (http://www.ti.com/tool/ble-stack).
3) Connect CC debugger to keyfob.
I had problems with the battery holder corrosion too, seems to be a very common problem with these kits. I used tweezers to scrape and clean the negative terminal of the battery holder and it worked. The buzzer would keep beeping if keyfob is powered up, I pressed Button B3 to stop the buzzer and LED lit up.
The red line of the connector must be connected to Pin1 on both Debugger and keyfob.
5) Solder the two terminals of R1 together, R1 is located at the top of the debugger pins on the keyfob. Short R1 allows the CC debugger to power the keyfob directly when it’s connected. This saves power and batteries because the power management on keyfob is disabled when debugger is connected. This is recommended if the debugger is going to be connected for a long time. (Pg 27 of Mini DK User’s Guide)
4) Write Hex file to keyfob using the SmartRP Flash Programmer. C:Texas InstrumentsBLE-CC254x-1.2.1AccessoriesHexFilesCC2540_keyfob_SimpleBLEPeripheral.hex
5) Connect Debugger to to USB dongle and plug the dongle to PC. It couldn’t automatically detect the driver for some reason. I went to Device Manager and installed the driver manually. Default location is C:Texas InstrumentsBLE-CC254x-1.2.1AccessoriesDriversusb_cdc_driver_cc2540.inf
6) Write Hex file to USB dongle using the SmartRP Flash Programmer. C:Texas InstrumentsBLE-CC254x-1.2.1AccessoriesHexFilesCC2540_USBdongle_HostTestRelease_All.hex
7) Disconnect debugger and use the USB dongle to discover keyfob. Open BTool, select the Port of the dongle. Press button B3 (right button) on keyfob to make it discoverable for 30 seconds, scan for the device on BTool.
If it’s successfully detected there would something like this in the log output with the device address.
NumDevs : 0x01 (1)
EventType : 0x00 (Connectable Undirect Advertisement)
AddrType : 0x00 (Public)
Addr : 78:C5:E5:9A:C3:BC
I tried using my Macbook Air to detect the keyfob but it didn’t work. I found this post on TI forum that although Macbook Air is Bluetooth Smart Ready but there’s no software support yet. Hope there will be more devices and apps coming up that support bluetooth 4.0.