NRFX_RTC0_INST_IDX undeclared here (not in a function); did you mean 'NRFX_RTC_INT_TICK'
can anyone tell me what it this error and how to slove it
NRFX_RTC0_INST_IDX undeclared here (not in a function); did you mean 'NRFX_RTC_INT_TICK'
can anyone tell me what it this error and how to slove it
Hi,
NRFX_RTC0_INST_IDX if NRFX_RTC0_ENABLED is not enabled. If you are using the nRF5 SDK that is either because it is not set in sdk_config.h or typically because RTC0_ENABLED is not set (and that would overturn any configuration of NRFX_RTC0_ENABLED). So most likely all you need to do to fix this is to change RTC0_ENABLED from 0 to 1 in sdk_config.h.
As a side note, please remember that if you are using a SoftDevice then RTC0 is busy, so you sould use another instance.