I added the following configuration to prj.conf file. But west build failed. Do you have suggestion to enable COUNTER_NRF_RTC?
CONFIG_RTC=y CONFIG_COUNTER_NRF_RTC=y
west build -b nrf5340dk_nrf5340_cpuapp ... error: COUNTER_NRF_RTC (defined at drivers/counter/Kconfig.nrfx:8) is assigned in a configuration file, but is not directly user-configurable (has no prompt). It gets its value indirectly from other symbols. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_COUNTER_NRF_RTC and/or look up COUNTER_NRF_RTC in the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.