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.

BLE CC2650 Sensortag SimpleBLEPeripheralObserver

Other Parts Discussed in Thread: CC2650STK, CC2650

Hello,

We need urgent support on an issue we have encountered while using CC2650 Development Sensor Tag CC2650STK.

We have made a POC using CC2650STK which demonstrates BLE communication capabilities between many devices. 

We are failing to demonstrate our design solution  due to CC2650 going in hang state. After much investigation we have reached point to investigate further from h/w standpoint.

 

Issue Case Description :

-          H/w Modifications:

  • Modified CC2650 STK to use CR2477 battery(3.3V, 1000mAh)
  • Replaced winbond 512KB flash with Macronix MX25R8035FZUIH1 2MB Flash

-          Number of CC2650 Devices in Use Case : 50

-          Use Case Description:

  • Each BLE CC2650 device tracks each other device for proximity at every 5 sec interval. The BLE devices records data on persistent memory and later synch data with Mobile App. Mobile App periodically connects with all 50 BLE CC2650 devices and downloads the data.
  • Advertisement interval : 100 ms
  • Scan duration: 1 sec for every 5 sec

-          Issue seen:

  • Beyond 25 – 30 devices in the network the CC2650 Hangs at some point and stops advertising or scanning to process. 
  • Battery voltage drops below 1.8V for some devices and rest of the devices have battery level at 2.3-2.4 Volts
  • Out of 35 devices, 5- 8 devices are still alive with battery voltage aroung 2.8-2.95 volts

Kindly assist/advice on what may be going wrong and how we can work to fix this issue.

Thanks and Regards

Janaki Vallabha

  • Hello Janaki,

    Does this problem happen if you power your devices with an external 3V3 supply? Are you using name-brand batteries?
    Also, have you measured peak current usage?

    Best wishes
  • Hi JXS,

    Thank you for looking into this.

    We are using the batteries from Panasonic. We have also tried testing with an external Agilent 3.3V supply.The behavior is same with batteries as well as Power supply.

    The current consumption while scanning for devices(Passive scan) was measured at 6.88mA (Average) and peak of 7.5mA. The Idle current was around 285uA.

    We have observed the same behavior by disabling external Flash Access. 

    However, when we disable scanning on the device completely, we are seeing that none of the devices are stopping.

    Regards

    Janaki Vallabha

  • Hi JXS,

    Update regarding this issue:
    From the debugging session, we have identified that the execution is stuck in "/* spin here if no exception handler is plugged */" in "hwi.c"

    Void Hwi_excHandler(UInt *excStack, UInt lr)
    {
    Hwi_module->excActive[0] = TRUE;

    /* spin here if no exception handler is plugged */
    while (Hwi_excHandlerFunc == NULL) {
    ;
    }

    Hwi_excHandlerFunc(excStack, lr);
    }

    I found a similar issue reported in this thread:

    We verified that the board, bsp_spi and ext_flash(.c and .h) files are same as the ones used in the Sensortag project. However we are still unsure of the cause for this exception and what the exception is.

    Please advise

    Thanks and Regards
    Janaki Vallabha

  • Hello Janaki ,

    Can you follow the guidance in the BLE SW Dev Guide (SWRU393) under Ch 9, "9.8 Deciphering CPU Exceptions"? This should help identify the source of the exception.

    Also, which sample application did you reference for your project?

    Best wishes
  • Hi JXS,

    I am using the SimpleBLEPeripheralObserver Project from processors.wiki.ti.com/.../CC2640_Peripheral_Observer_V2_1

    Regards
    Janaki Vallabha
  • Hi JXS,

    Foud the exact same issue reported here: 

    The problem is fixed after applying the fix for the bug in PeripheralObserver project as suggested in the above post.

    Thanks for your support

    Regards

    Janaki Vallabha