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.

CC2540 BTOOL BLEv1.4 SMARTRF05 COM port communication problem. Extension of previous posts

Other Parts Discussed in Thread: CC2540

Hi All,


This is an extension of the posts "CC2540 Btool - REVISITED" posted by on December 7 2011 and "CC2540 BTOOL" posted by on Oct 03 2011.

The only difference in the environment between the users at the previous and now is that TI has updated its stack and now the version is 1.4. What I understood reading "swru301a" i.e CC2540 Development Kit user guide is that in order to use BTOOL with CC2540 kit I need to flash SmartRF_HostTestRelease_Master.hex.

In the latest 1.4 version there is no such "SmartRF_HostTestRelease_Master.hex" instead what is present is "SmartRF_HostTestRelease_All.hex", which I flashed that using the programmer to the SMARTRF05  board.

But I am facing the same problem that other two persons had faced two years ago .I get the error "GAP Device Initialization Timeout". I tried snooping the data through another terminal connected via serial port with BTOOL. I found BTOOL sending the data "01 00 FE 26 08 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 " which I suppose is an HCI command.

I tried monitoring the CTS and RTS lines , I found CTS toggling continuously . I tried to short both CTS and RTS on the board side and the PC side, but to no effect I still get the same error.  The Tx and Rx line is OK as I could communicate between two PCs using the same wire. Doubting on the cable i am using, I tried with an USB to RS232 converter but still I am facing the same error.

My settings are

Baud : 57600 Flow : CTS/RTS parity : none stop bits :one data bits : 8

 

Since the kit also came with an USB dongle I tried to use the dongle by flashing the "USBdongle_HostTestRelease_All.hex" . The dongle works fine.

I also tried to build the HostTestApp project but it was generating the output "HostTestReleaseCC2540USB.hex", I could not find the settings for SMARTRF05 in the project so I could not generate a fresh Hex file.

Has there been any change in the versions and the board i am using. How do I confirm that ?

 

 

  • Hi Subhajit,

    Some time ago I used SmartRF05+EM with BTool but I had a lot of problems. In the end, it turned out that my serial cable was messed up and later my USB2Serial converter died. Ever since, I've been using the CC2540 USB Dongle for BTool.    

    So, my suggestion is that you make sure your serial cable setup is ok. 

    Best Regards

    Joakim