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

'NRFX_TIMER1_INST_IDX' Error

Hi,
I am adding pwm in ble_app_template but getting the following issue. Can you please suggest any solution?
Thanks!

Parents
  • Hi,

    This is a big confusing, but for legacy reasons there are two sets of configuration defines on sdk_config.h. You normally do not need ot set the NRFX* defines, as the value of the legacy configuration is used in stead. So for this specific error, the problem is that even though you have configured NRFX_TIMER1_ENABLED to 1, TIMER1_ENABLED is still set to 0, and this is what is used. This also applies to other driver configuration defines in sdk_config.h.

Reply
  • Hi,

    This is a big confusing, but for legacy reasons there are two sets of configuration defines on sdk_config.h. You normally do not need ot set the NRFX* defines, as the value of the legacy configuration is used in stead. So for this specific error, the problem is that even though you have configured NRFX_TIMER1_ENABLED to 1, TIMER1_ENABLED is still set to 0, and this is what is used. This also applies to other driver configuration defines in sdk_config.h.

Children
Related