Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

sdk_errors.h includes sdk_config.h unneccessarily

SDK 14.2  libraries/util/sdk_errors.h includes sdk_config.h but does not use it.  In other words, it falsely expresses a dependency.

This makes it harder to compile code (say a library) that uses nrf_drivers/hal/foo, which do not depend on the configuration of the SDK but only on the defined chip e.g. -DNRF52832_XXAA.  By harder, I mean such a project must contain an empty file sdk_config.h.

I could be wrong, just suggesting possible improvement.

Related