Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

How to SDK_CONFIG

Hello All,

My company has recently decided to switch to Nordic at the direction of one of our suppliers. We are very impressed with the devices offered and the available functionality but we are having some trouble learning the software. In particular, the configuration of the sdk_config.h file. We are using the nRF52840-DK and the nrf52850 Dongle to learn and build on.

We have been reading through the infocenter documentation and the devzone and have found alot of good information but we always come back to the question, for a given feature, how do you know which code should be included in the sdk_config file. There seems to be alot of opinions about this, throughout the forums, but not alot of answers.

For starters, the example code provided is great but the sdk_config file is always stripped down to only the necessary components for that specific use case. We have found the template file in the SDK/Config but it also is not a fully featured file. We have built a starter template program for use with our projects using this provided template but we constantly find features that are missing and we cannot find anything on the website or in the documentation that clearly specifies which code should be added and configured for a given feature.

Question 1: Is there a fully featured sdk_config.h file that includes EVERY feature?

Question 2: If I want to use a specific feature, where do I find information that clearly tells me which code should be included and enabled in the sdk_config file to work with that feature?

I feel like this information should be readily available but not finding it.

I really appreciate any help!!!

Thanks,

Chris

  • Hi,

    Since you are new to developing for nRF, you might want to start developing using the new nRF Connect SDK instead of the (old) nRF5 SDK. See our nRF Connect SDK and nRF5 SDK statement. Configuration is one of the areas that are significantly improved in nRF Connect SDK, compared to nRF5 SDK.

    Is there a fully featured sdk_config.h file that includes EVERY feature?

    The files under the <sdk root>\config\ folder should contain everything needed, but in practice we see that some configurations that have been added to certain libraries and examples are not present.

    If I want to use a specific feature, where do I find information that clearly tells me which code should be included and enabled in the sdk_config file to work with that feature?

    If it is a hardware peripheral feature, looking up the corresponding example under <sdk root>\examples\peripheral\ and searching for the peripheral name (or module name) in the sdk_config.h file usually does the trick. Similarly for other libraries. As you have observed, not all configs are present in all sdk_config.h files, so unfortunately some copy-pasting is needed. If all else fails, we aim to answer support requests here on Devzone within the next Norwegian business day. Often you will also get answers prior to that from the community.

    Regards,
    Terje

  • Hi Terje,

    Thank you for the reply! We have decided it is best to migrate to the nRF Connect SDK as you have suggested.

    Best Regards,

    Chris

Related