This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

multiple services error code 0xf

We are currently using SoftDevice 5.2.1 and was given the task to migrate to 6.2.1. I doing so, I placed 6.2.1 hex onto our device and turned it on. Yikes, many errors. Most notably are the 0xf errors coming from sd_ble_uuid_vs_add(). We have 3 custom services with their associated characteristics. The current code has 3 distinct functions that are called to initialize each service and characteristics. The functions do the following sd_ble_uuid_vs_add() sd_ble_gatts_service_add() and finally sd_ble_gatts_characteristic_add(). All works well in 5.2.1 but 6.2.1 works for the first service and characteristics, but the second function call for the seconds service and characteristics dies at sd_ble_uuid_vs_add() with error code 0xf. I see from the release notes that sd_ble_uuid_vs_add() has been changed to not allow for duplicate calls for the same UUID. That being said, does that mean I am going to have to change the code to add all services and characteristics in the same function that has the initial call to sd_ble_uuid_vs_add() ?

Parents
  • Hi,

    When you switch between major versions of the SoftDevice, you must at the very least recompile against the new headers in the new release. The migration document included in the release should outline the necessary changes needed for the upgrade.

    Without doing this, your SVC number mappings might be wrong, and you end up calling different APIs than you think you are (with very wrong variables).

Reply
  • Hi,

    When you switch between major versions of the SoftDevice, you must at the very least recompile against the new headers in the new release. The migration document included in the release should outline the necessary changes needed for the upgrade.

    Without doing this, your SVC number mappings might be wrong, and you end up calling different APIs than you think you are (with very wrong variables).

Children
No Data
Related