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

Parents
  • 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.

  • in fact these config file are not full at all wich make it difficult to compare

    Indeed.

    Disappointed

    And it's worse than that: even when they do contain the same sections, they are not in the same order - which, again, makes it impossible to easily compare!

    Disappointed

    The sdk_config.h idea seems like a good one - but this terrible mess in the implementation makes it a nightmare in practice!

    Disappointed

  • I wrote a bash script to compare 2 sdk_config file and output defines with different value, no matter the order. But if a define is present in only one file, it does not output the value. That's why it would be great that all config file were "full" config file.

    I agree that the sdk_config.h seems a good approach, until you need to modify it or merge several examples  Disappointed

  • In the past, I have resorted to dead trees and coloured highlighter pens!

    I keep thinking I should write a Python script ...

    seems a good approach, until you need to modify it or merge several examples 

    They're just text files - so  if all the files were complete, and all in a consistent order, it would be easy to compare and merge.

    Sigh.

Reply Children
No Data
Related