This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Re-flashing issues -- cannot get demo app to work.

Other Parts Discussed in Thread: CC2540

Upon receiving the kit and reading through the quick start guide, I ended up updating the f/w on the keyfob and now I can't get things to work. I'm guessing I've re-programmed something incorrectly but would appreciate some help getting things back to their original state (if that's possible). Here's what I've done so far...

Section 4.2 in swru270b (mini-dev kit user's guide) mentions the demo app to be 'SimpleBLEPeripheral' application. I tried to re-download this program to both the dongle and keyfob. Using the SmartRF Flash Programmer tool,

I re-flashed the USB dongle with C:\Texas Instruments\BLE-CC2540-1.1\Accessories\Hex_Files\cc2540_ble1.1_SmartRF_SimpleBLECentral.hex and re-flashed the BLE keyfob with C:\Texas Instruments\BLE-CC2540-1.1\Accessories\Hex_Files\cc2540_ble1.1_SmartRF_SimpleBLEPeripheral.hex via the CC Debugger and TI's SmartRF Flash Programmer (1.11.1 I think?)

Values in the System-on-Chip tab in the flash programmer include:

EB ID: 0800

Chip type: CC2540

EB type: CC Debugger

EB f/w ID: 05CC

EB f/w rev: 0022

These values didn't change when I switched between the fob and dongle after resetting the CC debugger.

After programming both devices, I reset them (power cycled the USB dongle and removed/re-inserted the battery on the keyfob). The dongle seems dead (doesn't register as a USB device when plugged into the PC and the keyfob clicks a few times and both the green and red LED is solid.

Since this didn't seem right, I re-flashed the USB dongle with

C:\Texas Instruments\BLE-CC2540-1.1\Accessories\Hex_Files\cc2540_ble1.1_USBdongle_HostTestRelease_Master.hex

and the BLE keyfob with

C:\Texas Instruments\BLE-CC2540-1.1\Accessories\Hex_Files\cc2540_ble1.1_SmartRF_HostTestRelease_Master.hex

Removing and re-inserting the battery causes the keyfob's LED to light green. I successfully got the USB dongle to register with the PC and the LED is red.

I selected 'scan' in the BTool and pressed the 'pair' button the on keyfob but get no repose. Here's the output from the BTool:


------------------------------------------------------------------------------------------------------------------------
[7] : <Rx> - 01:38:31.712
-Type        : 0x04 (Event)
-EventCode    : 0xFF (HCI_LE_ExtEvent)
-Data Length    : 0x2C (44) bytes(s)
 Event        : 0x0600 (GAP_DeviceInitDone)
 Status        : 0x00 (Success)
 DevAddr        : FF:FF:FF:FF:FF:FF
 DataPktLen    : 0x001B (27)
 NumDataPkts    : 0x04 (4)
 IRK        : 36:48:FF:54:53:C1:21:7C:EA:9B:E6:8D:86:08:88:E0
 CSRK        : 54:33:B1:BF:77:B7:EB:67:B6:4E:47:F4:14:33:E5:8F
Dump(Rx):
04 FF 2C 00 06 00 FF FF FF FF FF FF 1B 00 04 36
48 FF 54 53 C1 21 7C EA 9B E6 8D 86 08 88 E0 54
33 B1 BF 77 B7 EB 67 B6 4E 47 F4 14 33 E5 8F

------------------------------------------------------------------------------------------------------------------------
[8] : <Rx> - 01:38:31.803
-Type        : 0x04 (Event)
-EventCode    : 0xFF (HCI_LE_ExtEvent)
-Data Length    : 0x08 (8) bytes(s)
 Event        : 0x067F (GAP_HCI_ExtentionCommandStatus)
 Status        : 0x00 (Success)
 OpCode        : 0xFE31 (GAP_GetParam)
 DataLength    : 0x02 (2)
 ParamValue    : 0x0050 (80)
Dump(Rx):
04 FF 08 7F 06 00 31 FE 02 50 00

------------------------------------------------------------------------------------------------------------------------
[9] : <Rx> - 01:38:31.890
-Type        : 0x04 (Event)
-EventCode    : 0xFF (HCI_LE_ExtEvent)
-Data Length    : 0x08 (8) bytes(s)
 Event        : 0x067F (GAP_HCI_ExtentionCommandStatus)
 Status        : 0x00 (Success)
 OpCode        : 0xFE31 (GAP_GetParam)
 DataLength    : 0x02 (2)
 ParamValue    : 0x0050 (80)
Dump(Rx):
04 FF 08 7F 06 00 31 FE 02 50 00

------------------------------------------------------------------------------------------------------------------------
[10] : <Rx> - 01:38:31.977
-Type        : 0x04 (Event)
-EventCode    : 0xFF (HCI_LE_ExtEvent)
-Data Length    : 0x08 (8) bytes(s)
 Event        : 0x067F (GAP_HCI_ExtentionCommandStatus)
 Status        : 0x00 (Success)
 OpCode        : 0xFE31 (GAP_GetParam)
 DataLength    : 0x02 (2)
 ParamValue    : 0x0000 (0)
Dump(Rx):
04 FF 08 7F 06 00 31 FE 02 00 00

------------------------------------------------------------------------------------------------------------------------
[11] : <Rx> - 01:38:32.066
-Type        : 0x04 (Event)
-EventCode    : 0xFF (HCI_LE_ExtEvent)
-Data Length    : 0x08 (8) bytes(s)
 Event        : 0x067F (GAP_HCI_ExtentionCommandStatus)
 Status        : 0x00 (Success)
 OpCode        : 0xFE31 (GAP_GetParam)
 DataLength    : 0x02 (2)
 ParamValue    : 0x07D0 (2000)
Dump(Rx):
04 FF 08 7F 06 00 31 FE 02 D0 07

------------------------------------------------------------------------------------------------------------------------
[12] : <Tx> - 01:38:41.415
-Type        : 0x01 (Command)
-Opcode        : 0xFE04 (GAP_DeviceDiscoveryRequest)
-Data Length    : 0x03 (3) byte(s)
 Mode        : 0x03 (All)
 NameMode    : 0x01 (Enable)
 WhiteList        : 0x00 (Disable)
Dump(Tx):
01 04 FE 03 03 01 00

------------------------------------------------------------------------------------------------------------------------
[13] : <Rx> - 01:38:41.505
-Type        : 0x04 (Event)
-EventCode    : 0xFF (HCI_LE_ExtEvent)
-Data Length    : 0x06 (6) bytes(s)
 Event        : 0x067F (GAP_HCI_ExtentionCommandStatus)
 Status        : 0x00 (Success)
 OpCode        : 0xFE04 (GAP_DeviceDiscoveryRequest)
 DataLength    : 0x00 (0)
Dump(Rx):
04 FF 06 7F 06 00 04 FE 00

------------------------------------------------------------------------------------------------------------------------
[14] : <Rx> - 01:38:51.802
-Type        : 0x04 (Event)
-EventCode    : 0xFF (HCI_LE_ExtEvent)
-Data Length    : 0x04 (4) bytes(s)
 Event        : 0x0601 (GAP_DeviceDiscoveryDone)
 Status        : 0x00 (Success)
 NumDevs    : 0x00 (0)
Dump(Rx):
04 FF 04 01 06 00 00

------------------------------------------------------------------------------------------------------------------------

 

Any help is greatly appreciated. I'm at my wits-end.