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.

CC2340R5: The Advertising cannot be stop properly using the BLEAppUtil advStop function

Part Number: CC2340R5

Hello, TI Team.

I am using GPIO interrupt callbacks to control the start and stop of advertising, starting advertising when the GPIO level is low and stopping advertising when the GPIO level is high.

For the first few times, I was able to control the beginning and end of the advertising. After repeated several times, the advertising could not be stopped, and there was a advertising signal with irregular advertising intervals. When the GPIO level is raised again, the time interval of the advertising signal is also irregular.

Here is the interface I implemented:

Here is the GPIO configuration and interrupt callback:

Best Regards,

Joey.

  • Hi Joey,

    Thank you for reaching out. Can you check the return code of the GapAdv_enable() function to see what is being returned? I am interested to see if any return code other than SUCCESS is provided. Could you also share the SDK version you are using?

    Best Regards,

    Jan

  • Hi Jan,

    Thank you very much. I repeated the test several times and confirmed that the problem was the slide switch jitter. I am now using another CC2340 as an MCU output high and low level analog slide switch, and the above phenomenon does not occur.

    Best Regards,

    Joey