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.

why my cc2540 stop advertising sometimes?

Other Parts Discussed in Thread: CC2540

I have my own design based on cc2540, the software is derived from simplebleperipheral ble 1.4, and i have changed the advertising mode to GAP_ADTYPE_FLAGS_GENERAL, which i think is indefinite advertising mode. However,when i use some mobile IOS applications(like TI's BLE multitool) to

check if the advertising data available, i found it disappear sometimes. In order to dig more into this issue, i add a led toggle(HalLedSet(led1, HAL_LED_MODE_TOGGLE) ) function in my application specific periodic event processing function. I found

when advertising is okay, the led blink less frequently, however when advertising data disappears, the led blink more frequently, that is all my founding for this issue,

could someone please throw me some light on this issue?

one thing is, my design use a Super-Capacitor to provide some additional time-limited power supply to the cc2540 when the main power is shut off, and i have no so-called power on acceleration circuit, as a result, when power on, vdd supplied to cc2540 raise up very slowly, may take 8-10 seconds to reach 2.0v(2540's minimal working voltage level) , does this have influence to this issue?

thanks a lot for your response in advance!

  • Hi,

    Supply voltage rise time should not affect operation, however, I am not sure as slow ramping as you are using has ever been tested. Can you remove the supercap and see if the behavior is the same?

    Cheers,
    Fredrik
  • Hi, Fredrik
    Thanks a lot for your response!
    You are right , we finally found the root cause, that is the advertising disappear has nothing to do with voltage rise time or any other hardware disign/software configure, it is because we have some other colleague who are testing his apps, and the apps will try to connect my 2540 board from time to time, when BLE switch to CONNECTED mode, it will never advertise anything until dis-connected:-)
  • Next time enable the Whitelist, it will stop them from connecting!

    Best wishes