CC1352R: How to enable and disable advertising

Part Number: CC1352R

Tool/software:

Dear All,

We’ve observed that using these APIs causes the code execution to abort. Interestingly, removing the icall.h file allows access to the mentioned APIs, but the expected functionality does not work.

We’re seeking guidance on how to properly start and stop advertising.

Note: We are working with the "Simple Peripheral" sample project. By default, advertising begins automatically on power-up as per the standard process. However, we need to control advertising dynamically—enabling and disabling it based on specific requirements.

  • Hi !

    Using GapAdv_enable and GapAdv_disable is the right thing to do for your use case of enabling and disabling advertisement. You should be able to run these functions without issue.

    Could you explain to me what you mean when you say that the code execution aborts ? When you run a debugger, if you set a breakpoint on line 1109, do you ever reach it ? Could you store the status code returned from the function and tell me what is it (either by displaying it in UART or using the debugger from CCS).

    Kind regards,
    Maxence