I'm uploading a BLE & TWI code to nRF52 DK. Now, I'm getting this error:
NRFX_TIMER3_INST_IDX' undeclared (first use in this function)
According to other similar posts, I have enabled timers in SDK.
// <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver //========================================================== #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 1 #endif // <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance #ifndef NRFX_TIMER0_ENABLED #define NRFX_TIMER0_ENABLED 1 #endif // <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance #ifndef NRFX_TIMER1_ENABLED #define NRFX_TIMER1_ENABLED 1 #endif // <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance #ifndef NRFX_TIMER2_ENABLED #define NRFX_TIMER2_ENABLED 1 #endif // <q> NRFX_TIMER3_ENABLED - Enable TIMER3 instance #ifndef NRFX_TIMER3_ENABLED #define NRFX_TIMER3_ENABLED 1 #endif // <q> NRFX_TIMER4_ENABLED - Enable TIMER4 instance #ifndef NRFX_TIMER4_ENABLED #define NRFX_TIMER4_ENABLED 1 #endif // <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode // <0=> 16 MHz // <1=> 8 MHz // <2=> 4 MHz // <3=> 2 MHz // <4=> 1 MHz // <5=> 500 kHz // <6=> 250 kHz // <7=> 125 kHz // <8=> 62.5 kHz // <9=> 31.25 kHz #ifndef NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY #define NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 0 #endif // <o> NRFX_TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation // <0=> Timer // <1=> Counter #ifndef NRFX_TIMER_DEFAULT_CONFIG_MODE #define NRFX_TIMER_DEFAULT_CONFIG_MODE 0 #endif // <o> NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width // <0=> 16 bit // <1=> 8 bit // <2=> 24 bit // <3=> 32 bit #ifndef NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH #define NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 0 #endif // <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority // <0=> 0 (highest) // <1=> 1 // <2=> 2 // <3=> 3 // <4=> 4 // <5=> 5 // <6=> 6 // <7=> 7 #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 6 #endif // <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED #define NRFX_TIMER_CONFIG_LOG_ENABLED 1 #endif // <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default Severity level // <0=> Off // <1=> Error // <2=> Warning // <3=> Info // <4=> Debug #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL #define NRFX_TIMER_CONFIG_LOG_LEVEL 3 #endif // <o> NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. // <0=> Default // <1=> Black // <2=> Red // <3=> Green // <4=> Yellow // <5=> Blue // <6=> Magenta // <7=> Cyan // <8=> White #ifndef NRFX_TIMER_CONFIG_INFO_COLOR #define NRFX_TIMER_CONFIG_INFO_COLOR 0 #endif // <o> NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // <0=> Default // <1=> Black // <2=> Red // <3=> Green // <4=> Yellow // <5=> Blue // <6=> Magenta // <7=> Cyan // <8=> White #ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR #define NRFX_TIMER_CONFIG_DEBUG_COLOR 0 #endif
In my nrfx_timer.c file. timer3 section is the only part that is NOT greyed out.

Any idea, please? Thank you!
