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

What SoftDevice and API version my apps expect?

Hi,

probably very basic question. I found some nrf code in nordic sdk. I don't remember the version of SDK. I compiled and deployed it on nrf52840 devkit and also on dongle. Some miracle happened and everything works. Super. 

After longer time I came back to my project and need to know:

1. Where in the code I can find reference to SoftDevice S??? and API version ??? that this code is written in (compatible)? If there is no reference, what is the best practices?

2. How complicated is changing app code in case I want to migrate apps (for example from S132 to S140)? Is there something like compatibility checker?

BTW: I use KEIL IDE.

Thanks a lot.

Parents
  • Hi,

    1. It's probably easiest to just  check the name of the Keil Softdevice flash target (ARM Keil), as the naming should reflect the Softdevice version and variant that is being used with the project.  You could also  search through your project for "SD_VERSION" and "SD_VARIANT_ID".  These definitions are included in the nrf_sdm.h Softdevice API header and should correspond with the Softdevice that is being used.

    To find the SDK version, you can check out the release notes in the SDK "documentation" folder (\nRF5_SDKxyz\documentation\). 

    2. Which SDK and SD combinations are supported for the 52840 can be found by looking at the compatibility matrix here: "SDKs and SoftDevices".  Usually, it is quite straight forward to go from one Softdevice variant to another. You can compare existing SDK projects configurations for Softdeice variant x vs variant y  to see what the actual differences are (e.g. compare the s113 vs the s140 project configuration in \nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10056).

    Best regards,

    Vidar

Reply
  • Hi,

    1. It's probably easiest to just  check the name of the Keil Softdevice flash target (ARM Keil), as the naming should reflect the Softdevice version and variant that is being used with the project.  You could also  search through your project for "SD_VERSION" and "SD_VARIANT_ID".  These definitions are included in the nrf_sdm.h Softdevice API header and should correspond with the Softdevice that is being used.

    To find the SDK version, you can check out the release notes in the SDK "documentation" folder (\nRF5_SDKxyz\documentation\). 

    2. Which SDK and SD combinations are supported for the 52840 can be found by looking at the compatibility matrix here: "SDKs and SoftDevices".  Usually, it is quite straight forward to go from one Softdevice variant to another. You can compare existing SDK projects configurations for Softdeice variant x vs variant y  to see what the actual differences are (e.g. compare the s113 vs the s140 project configuration in \nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10056).

    Best regards,

    Vidar

Children
No Data
Related