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

Missing defines in generic sdk_config.h

Hi,

I'm migrating a project from SDK 14.2 to 15.3 and I wanted to use the generic and "full" sdk_config.h located in config/nrf52840/config/.

The documentation says that this file is a "full" config file where there is all the available #define.

But I couldn't find the defines related to log backend (for example NRF_LOG_BACKEND_RTT_ENABLED).

There is 11473 lines in this file, but in the sdk_config.h in the ble_app_template project, there is 11861 lines (and NRF_LOG_BACKEND_RTT_ENABLED is defined).

So is it normal that the "full" generic config file does not contain all the defines ?

Is there any real "full" config file ? The problem with the one from ble_app_template is that there is a lot of modules that I don't need.

Thanks

  • I find that Keil uVision gives a much better view of the settings in sdk_config.h than the CMSIS Configuration Wizard:

    https://devzone.nordicsemi.com/f/nordic-q-a/45362/cmsis-configuration-wizard---option-highlighting

    You can use the free version of Keil to view & edit an sdk_config.h - no need to create or build a uVision project...

  • Hi and thanks for your reply.

    The problem is not with CMSIS Configuration Wizard because it does not even display NRF_LOG_BACKEND_RTT_ENABLED because it is not present in the "full" sdk_config.h file.

    Is it different with Keil ?

    The problem I have is that the "full" config file does not contains all the available defines (especially the one used for log backend)

  • my experience with SDK 14.2 also shows that recommended "full" file is in fact not full

  • Yes exactly the "full" file is not full.

    Moreover, the documentation specify that "All examples contain a full configuration header file in which only the used modules are enabled" but in fact these config file are not full at all wich make it difficult to compare to "generic" config file.

    For example the blinky example config file has only 3300 lines.

    If all config file were full, it would be easy to compare these files with a simple diff and output the result to an app_config.h file for example.

  • Keil can't display stuff which isn't there!

    The problem is not with CMSIS Configuration Wizard

    Yes, I understand that - I was just saying that Keil gives a better view.

    I guess Keil also has the advantage of letting you edit in plain text mode

1 2 3 4