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.

BTOOL error talking to SMARTRF05EB : [3] : <Warning> - 08:24:09.060 GAP Device Initialization Timeout Device May Not Function Properly

Other Parts Discussed in Thread: CC2541, CC2540, BLE-STACK

Trying to get BTool working with SMARTRF05EB using serial to USB connection> I get error.

The report is as follows with error at end:

[1] : <Info> - 08:23:58.622

Port opened at 4/12/2016 8:23:58 PM

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

[2] : <Tx> - 08:23:59.028

-Type           : 0x01 (Command)

-OpCode         : 0xFE00 (GAP_DeviceInit)

-Data Length   : 0x26 (38) byte(s)

ProfileRole   : 0x08 (8) (Central)

MaxScanRsps   : 0x05 (5)

IRK           : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

CSRK           : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

SignCounter   : 0x00000001 (1)

Dump(Tx):

0000:01 00 FE 26 08 05 00 00 00 00 00 00 00 00 00 00 ...&............

0010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

0020:00 00 00 00 00 00 01 00 00 00                   ..........

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

[3] : <Warning> - 08:24:09.060

GAP Device Initialization Timeout

Device May Not Function Properly

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

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I looked at some of the threads in E2E and the solution for the one I seen was to update the USB_cdc_driver. When doing so, message came back that I have the latest version.

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

My set up is

usb to SMARTFR05 and powered up

RS232 serial cable connected to SMARTFR05 and USB to PC.

Tryed with RS232 switch enabled and disabled with same results.

On BTool as per document

PortCom3 –USB-Serial CH340

Baud 57600

Flow None (doc says CTS/RTS but PC port does not have that option)

Parity None

Stop Bits One

Data Bits 8

Device Manager on PC sees the usb-serial connection, error free

Same as above (no Flow CTS/RTS on PC)

Also, when looking to see if SMARTFR05EB firmware was latest, it was.

 

Note:No Dongle involved in set up.

 

What are some other things to look at to eliminate BTool error?

Thanks

  • I would first verify that you have the correct firmware loaded (CC2540_SmartRF_HostTestRelease_All.hex or CC2541_SmartRF_HostTestRelease_All.hex)

    Then try all of the different flow control options in BTool, resetting the SmartRF board before each time you attempt to open it.
  • Hi,

    Facing the same issue. The above solution did not solve the problem. I can see TI BLEv1.4 HostTestApp All in the LCD. So I am sure that correct program is loaded.
    Adding the logs from BTool.

    [1] : <Info> - 06:36:34.652
    Port opened at 21-06-2016 18:36:34
    ------------------------------------------------------------------------------------------------------------------------
    [2] : <Tx> - 06:36:34.961
    -Type : 0x01 (Command)
    -Opcode : 0xFE00 (GAP_DeviceInit)
    -Data Length : 0x26 (38) byte(s)
    ProfileRole : 0x08 ( Central )
    MaxScanRsps : 0x05 (5)
    IRK : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
    CSRK : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
    SignCounter : 0x00000001 (1)
    Dump(Tx):
    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
    ------------------------------------------------------------------------------------------------------------------------
    [3] : <Warning> - 06:36:44.985
    GAP Device Initialization Timeout.
    Device May Not Function Properly.
    ------------------------------------------------------------------------------------------------------------------------
  • Hi,

    I did not want to create a new thread for the same problem. Currently I am sitting idle with the new hardware I bought primarily because no one in the support team want to respond. We had enough problems getting a perfect code working with IAR who doesn't care about backward compatibility (or their customers). Please don't add to our woes.

    At least tell me how I can debug this myself.
  • Hello,

    Did you enabled the RS232 slider switch on the SmartRF05? Try 115200,N,8,1 with RTS/CTS when you connect with BTool.

    Best wishes 

  • Hi JXS,

    Thanks for the reply.  Enabled the switch, configured with the mentioned settings. I now receive HCI_CommandCompleteEvent but the error remains the same.  Also tried with other flow options. In those cases, nothing was received from the COM5.

    I tried with another smartRF05EB and the output was different though I loaded the same CC2540 module was installed. So I have a feeling that the response is not actually coming from the CC2540.

    I did a simple loopback test to verify that the serial cable is working.

    My end goal is to use smartRF05EB for OAD image encryption but since it was not working, I reverted to BTool for debugging.

    With first smartRF05EB,

    [1] : <Info> - 11:44:19.948
    
    Port opened at 23-06-2016 11:44:19
    
    ------------------------------------------------------------------------------------------------------------------------
    
    [2] : <Tx> - 11:44:20.198
    
    -Type : 0x01 (Command)
    
    -Opcode : 0xFE00 (GAP_DeviceInit)
    
    -Data Length : 0x26 (38) byte(s)
    
    ProfileRole : 0x08 ( Central )
    
    MaxScanRsps : 0x05 (5)
    
    IRK : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
    
    CSRK : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
    
    SignCounter : 0x00000001 (1)
    
    Dump(Tx):
    
    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
    
    ------------------------------------------------------------------------------------------------------------------------
    
    [3] : <Rx> - 11:44:20.229
    
    -Type : 0x04 (Event)
    
    -EventCode : 0xFF (HCI_LE_ExtEvent)
    
    -Data Length : 0x0E (14) bytes(s)
    
    Event : 0x000E (HCI_CommandCompleteEvent)
    
    Status : 0x00 (Success)
    
    Raw : 00 FE 00 04 FF 2C 00 83 80 DC EC E4
    
    Dump(Rx):
    
    04 FF 0E 0E 00 00 FE 00 04 FF 2C 00 83 80 DC EC
    
    E4
    
    ------------------------------------------------------------------------------------------------------------------------
    
    [4] : <Warning> - 11:44:30.202
    
    GAP Device Initialization Timeout.
    
    Device May Not Function Properly.
    
    ------------------------------------------------------------------------------------------------------------------------
    

    With second smartRF05EB with same CC2540,

    [1] : <Info> - 11:59:06.238
    
    Port opened at 23-06-2016 11:59:06
    
    ------------------------------------------------------------------------------------------------------------------------
    
    [2] : <Tx> - 11:59:06.488
    
    -Type : 0x01 (Command)
    
    -Opcode : 0xFE00 (GAP_DeviceInit)
    
    -Data Length : 0x26 (38) byte(s)
    
    ProfileRole : 0x08 ( Central )
    
    MaxScanRsps : 0x05 (5)
    
    IRK : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
    
    CSRK : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
    
    SignCounter : 0x00000001 (1)
    
    Dump(Tx):
    
    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
    
    ------------------------------------------------------------------------------------------------------------------------
    
    [3] : <Rx> - 11:59:06.519
    
    -Type : 0x04 (Event)
    
    -EventCode : 0xFF (HCI_LE_ExtEvent)
    
    -Data Length : 0x06 (6) bytes(s)
    
    Event : 0x0033 (HCI_UserConfirmationRequestEvent)
    
    Status : 0x00 (Success)
    
    Raw : 00 FE 00 04
    
    Dump(Rx):
    
    04 FF 06 33 00 00 FE 00 04
    
    ------------------------------------------------------------------------------------------------------------------------
    
    [4] : <Warning> - 11:59:16.497
    
    GAP Device Initialization Timeout.
    
    Device May Not Function Properly.
    
    ------------------------------------------------------------------------------------------------------------------------

  • Hi Tejas,

    Well, that's an improvement since you are now getting RX data !

    Just to confirm.. did you program CC2540_SmartRF_HostTestRelease_All.hex to the CC2540EM from BLE 1.4.x?
    Also, please confirm your COM port settings match the BTool settings in swru270. The OP used 57600 baud, which is not correct.

    Best wishes
  • Hi JXS,

    I programmed CC2540_SmartRF_HostTestRelease_All.hex and I can see TI BLEv1.4 HostTestApp All in the LCD. Here are the COM settings used.

    Port: COM6
    Baud: 115200
    Flow: CTS/RTS
    Parity: None
    Stop bits: One
    Data bits: 8

    So the settings are as per the documentation.
  • Hi JXS,

    Any thoughts? We are currently blocked by this issue. We bought this product primarily for encrypted OAD and our product is ready to be released. And I am still wondering whether to use BEM or BIM because I can't get my SmartRF05EB working.

    Regards
  • Hi Tejas,

    I'm at a loss to explain what is going on based on what is presented. Your hex file is correct and port settings are correct as well.
    How did you confirm that your USB serial adapter is working? You mentioned loopback, how was that tested?
    Also, what BTool version are you using?

    Best wishes
  • Hi JXS,

    I shorted the Tx And Rx pins (pin 2 and 3) and wrote a small python script to write a string and do a read. I was able to read the data I wrote. Which mean the Tx and Rx are working fine.

    Currently I am using BTool v1.40.5

    Best Regards
  • Hi Tejas,

    Can you take a logic analyzer trace of the TX pin on the RF05 board and correlate to the BTool log?

    Also, is it BTool v1.41.5?

    Best wishes
  • Hi JXS,

    I didn't have to do it. I started using the latest BLE stack (1.4.2) and everything went fine. I loaded the Host Test Release firmware from BLE 1.4.2 and started using BTool 1.40.15. This worked fine. Just for internal documentation, can you confirm that the smartRF works specifically with BLE1.4.2 and older versions of the stack?

    I need to try again with the serial bootloader which is my actual intention to purchase the smartRF but that is out of scope for this question. Downloading the IAR 9.10.3 to generate OADManager hex for BLE1.4.2. A few configuration nightmares and I should be good to go.

    Thanks for your support JXS.
  • Hi Tejas,

    Thanks for letting us know that it's working on your end. I'm not aware of any incompatibility with previous BLE-Stack v1.4.x releases and the SmartRF05EBK, but you do have to use the correct BTool + SDK release.

    Best wishes
  • Thanks JXS. I tried with a few variations of BLE stack and BTool and that was the issue. Is there a place where the supporting software versions along with the BLE stack versions are documented?

    As you can see, with serialBootLoader, I am facing a similar issue. (e2e.ti.com/.../526333)
  • Hi Tejas,

    The Software Developer's guide for each BLE SDK will describe the required versions of the supporting software.