Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Back to back calls to ble_advertising_start(..) in nRF SDK 16.0.0 fails with INVALID_PARAMETER (i.e. 10)

I am using SDK 16.0.0.
I want to switch from a NON-CONNECTABLE, NON-SCANNABLE advertisement to a CONNECTABLE, SCANNABLE advertisement.
I launch the first advertisement and wait for it to finish after its 'DURATION' expires.
Then I launch the second advertisement (this is triggered Out of Band with a GPIOTE event).
The firmware rexecutes ALL the steps it took when it launched the first advertisement EXCEPT it uses the same configuration tag as was used in the first advertisement.

The start operation for the second advertisement fails with the error 10 i.e. INVALID PARAMETER.
The only thing I have been able to figure out is that the 'type' is different than it was before.
But the firmware DOES initialize the advertising module with the NEW type.

So, I do not understand why the Soft Device is responding with the error 10.

Parents
  • Hello,

    The start operation for the second advertisement fails with the error 10 i.e. INVALID PARAMETER.
    So, I do not understand why the Soft Device is responding with the error 10.

    Could you show me the snippet of code where the non-NRF_SUCCESS error code is returned?
    The INVALID PARAM error code suggests that you have passed an invalid parameter to the function, such as an incorrect type, or configuration.

    Looking forward to resolve this issue together!

    Best regards,
    Karl

Reply
  • Hello,

    The start operation for the second advertisement fails with the error 10 i.e. INVALID PARAMETER.
    So, I do not understand why the Soft Device is responding with the error 10.

    Could you show me the snippet of code where the non-NRF_SUCCESS error code is returned?
    The INVALID PARAM error code suggests that you have passed an invalid parameter to the function, such as an incorrect type, or configuration.

    Looking forward to resolve this issue together!

    Best regards,
    Karl

Children
No Data
Related