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

Running basic tutorial on custom breakout board

Hello,

What changes need to be made to the following tutorial to enable basic advertising with the Rigado BMD-300 on a custom board breakout board?

devzone.nordicsemi.com/.../

I've ripped out everything to do with the LEDs and buttons, but I'm still not seeing any advertising data with my custom board.

CONTEXT:

Parents
  • Well what you mean is you likely have a problem with your external crystal based RTC. The trick that makes the software work is to tell the nRF to use its internal RC based RTC. Depending on your timing requirements you may/may not need a crystal based RTC. When it uses the internal RC the nRF calibrates it periodically against the main 32MHz clock. Since the ppm accuracy of the main clock is probably inferior to that of your external 32K clock the RC based RTC will never be as accurate. It may not matter for you though. We don't use an external RTC on our products.

    Here is the code that makes the difference. It is in the board header file.

    #define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_RC,            \
                                 .rc_ctiv       = 16,                                \
                                 .rc_temp_ctiv  = 0}
    
Reply
  • Well what you mean is you likely have a problem with your external crystal based RTC. The trick that makes the software work is to tell the nRF to use its internal RC based RTC. Depending on your timing requirements you may/may not need a crystal based RTC. When it uses the internal RC the nRF calibrates it periodically against the main 32MHz clock. Since the ppm accuracy of the main clock is probably inferior to that of your external 32K clock the RC based RTC will never be as accurate. It may not matter for you though. We don't use an external RTC on our products.

    Here is the code that makes the difference. It is in the board header file.

    #define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_RC,            \
                                 .rc_ctiv       = 16,                                \
                                 .rc_temp_ctiv  = 0}
    
Children
No Data
Related