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?