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

Changes in sdk_config.h are not getting reflected in code(mesh light_switch server example)

I am trying to add Timer2 to light_switch server example. But it fails to compile with a undeclared error for NRFX_TIMER2_INST_IDX. I have set the following macros in sdk_config.h.

#define NRFX_TIMER_ENABLED 1
#define NRFX_TIMER2_ENABLED 1

But it seems that this doesnt affect the code generation. I also tried to declare these macros in app_config.h but the error persists. Similar case happens with NRFX_PPI_ENABLED as well.

I am using Segger Embedded studio. I have no clue whats wrong? Is this a complier/IDE issue?

Parents Reply Children
No Data
Related