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.

CC2640R2F: Losing connection between device and ipad after 30 min to 3 h

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640, , LAUNCHXL-CC2640R2

Hi,

When I run my device in normal operation for a longer period of time I lose the connection with my ipad and can not reconnect to it. 

I tried it once more but in a debugging session and the same issue occurs. When I suspend the application in my various task I can't find any problem. The tasks has plenty of space left and no exceptions are found with the ROV. 

This has lead me to believe that there is an issue with-in the stack but I do not know how to verify this. What is the easiest way of verifying the status of the stack when my issues occur?

This issue did not occur when I used the cc2640 SDK 2.2.1 but does now when I use the cc2640r2f SDK 3.01.00.05.

I use a custom board with an application and stack built upon the simple_peripheral_cc2640r2lp_oad_offchip example.

Best regards 

Niklas

  • Hi Niklas,

    Does the same happen at TI CC2640R2F Launchpad with original simple_peripheral_cc2640r2lp_oad_offchip example from SDK v1.40?

    - kel
  • Hi Kel,

    I do not have a cc2640r2f launchpad and can therefore not test that.

    Regards
    Niklas
  • Hi Niklas,

    I suggest you take kel's advice and obtain a LAUNCHXL-CC2640R2 LaunchPad as a reference to rule out any problem with your board. I would also recommend going through the CC26xx HW Troubleshooting article on the TI BLE wiki to measure the accuracy of your 32k crystal.

    Best wishes
  • Hi JXS,

    I've tested my code with a launchpad and it works but I had to do quite some changes to the code to get the same output that I have on my custom board. The reason for this is that I have a lot of data coming from an other processor via SPI that will be sent out with my various characteristics. When I use the launchpad I simulate this data instead.

    I also did measurements on the 32k crystal and it was running with the correct frequency.

    Regards
    Niklas
  • I see that I didn't ask a return question so here is the question.

    What should be my next step in trying to locate this problem? 

    Regards 

    Niklas

  • I have noticed that when the crash occurs, I can still connect to the device after but I cannot bond to it anymore.

    Here is an update of what I have done so far:

    • Changed my capacitor from 12pF to 7.5pF and  changed the SCA (Sleep Clock Accuracy) value to 500. Still crashed after a few hours.
    • Mapped the clock to a DIO and did a raw test to see the clock was running. The clock was running at 32.77 kHz the entire time even during crash. Will double check this test.
    • Removed power_saving as a predefined symbol. Also crashed after a few hours.

    I have made space for load capacitors on my board but they are not mounted. 

    I have stated looking into the UIA functions. Can they be used on the stack as well?

    Regards 

    Niklas

    We changed the SCA (Sleep Clock Accuracy) value to 500.