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

NRF_MODULE_ENABLED and Eclipse don't play well

The NRF_MODULE_ENABLED macro does not play well with Eclipse.  I've tried enabling all Modules in the Symbols section of Eclipse but still it does not enable any module utlizing the NRF_MODULE_ENABLED(x) macro.  Has anyone gotten this to work?  Its quite annoying that this is only an issue with SDK 15.  I'm using Eclipse 4.6.3

Thanks guys,

Parents Reply
  • The compiler correctly evaluate all symbols, this is just an Eclipse error.  If i define NRF_MODULE_ENABLE_ALL as a symbol in eclipse, this should enable all modules from Eclipse's perspective while the compiler only includes the ones defined in sdk_config.h.   However for some reason Eclipse cannot evaluate the NRF_MODULE_ENABLED(x) correctly.  It doesn't recognize the symbols are defined and greys out all source code prepending with that macro (which is most of them)

Children
Related