undefined reference to `nrfx_timer_enable'

I am using SDK 14.2.0 with Segger IDE.

I am trying to configure timers and while my code does compile w/o errors the linker fails with message in the subject above.

To avoid copy_old_config script re-writing my sdk_config.h I have modified my sdk_config.h:

//#ifndef TIMER_ENABLED
//#define TIMER_ENABLED 0
//#endif

According to support threads it is good practice to remove or comment-out the legacy driver defines in sdk_config.h.

The code compiles fine because of the following line in nrf_drv_timer.h:

#define nrf_drv_timer_enable                     nrfx_timer_enable

The issue is there is no function named nrfx_timer_enable anywhere in the sdk code base that I can find.

Seeger IDE list of nRF_Drivers has no file specified for timer support.

I added SDK_v14_2_0\components\drivers_nrf\timer\nrf_drv_timer.c but this did nothing.

Maybe sdk is missing the nrfx compatible driver? nrfx_timer.c?

Any ideas what is wrong here?

sdk_config.h is attached.

2620.sdk_config.h

Related