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

nrf52832 RTC example not working for RTC1

In nrf52_SDK/examples/peripherals/rtc we tried adding the UART prints and verified. It was working fine for RTC0 but fails to do for RTC1. Could you please give any hint on this?

Parents
  • I changed the following for using RTC1,

    1. const nrf_drv_rtc_t rtc = NRF_DRV_RTC_INSTANCE(0); to const nrf_drv_rtc_t rtc = NRF_DRV_RTC_INSTANCE(1);
    2. RTC0_CONFIG_FREQUENCY to RTC1_CONFIG_FREQUENCY
    3. enabled RTC1 in nrf_drv_config.h file.

    As per the example, LED0 should blink for every ticks and LED 1 should be ON after 3 seconds. This happened for RTC0 and RTC2. But this did not happened for RTC1.

Reply
  • I changed the following for using RTC1,

    1. const nrf_drv_rtc_t rtc = NRF_DRV_RTC_INSTANCE(0); to const nrf_drv_rtc_t rtc = NRF_DRV_RTC_INSTANCE(1);
    2. RTC0_CONFIG_FREQUENCY to RTC1_CONFIG_FREQUENCY
    3. enabled RTC1 in nrf_drv_config.h file.

    As per the example, LED0 should blink for every ticks and LED 1 should be ON after 3 seconds. This happened for RTC0 and RTC2. But this did not happened for RTC1.

Children
No Data
Related