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
  • Hi,

    For the particular example, you will see that RTC0 is configured like this, in examples\peripheral\rtc\config\rtc_pca10036\nrf_drv_config.h (or the equivalent for your SDK version and board):

    #define RTC0_CONFIG_FREQUENCY    8
    

    This means to get the same behaviour (the same blinking frequency) when using RTC1, you must set RTC1_CONFIG_FREQUENCY to 8:

    #define RTC1_CONFIG_FREQUENCY    8
    

    For other examples, as well as in the default nrf_drv_config.h file, there is an error on line 104:

    #define RTC1_CONFIG_FREQUENCY    32678
    

    It should rather be:

    #define RTC1_CONFIG_FREQUENCY    32768
    

    This was a typo in the SDK. It does not however apply for the peripheral\rtc\ example, and it may be correctly set for some of the other examples as well.

    Regards, Terje

  • sorry, I forgot to mention. I did the above change too.

Reply Children
No Data
Related