Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to use LFRC for DTM example?

Our board doesn't have LFXO, but I want to run DTM. When I try to switch to LFRC by changing sdk_config.h, it doesn't take effect.

chip: nRF52832

SDK: nRF5_SDK_17.0.2

#ifndef NRF_SDH_CLOCK_LF_SRC
#define NRF_SDH_CLOCK_LF_SRC 0
#endif

#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
#endif

#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
#endif

#ifndef NRF_SDH_CLOCK_LF_ACCURACY
#define NRF_SDH_CLOCK_LF_ACCURACY 1
#endif

Parents
  • Hi,

     

    Our board doesn't have LFXO, but I want to run DTM. When I try to switch to LFRC by changing sdk_config.h, it doesn't take effect.

    chip: nRF52832

    SDK: nRF5_SDK_17.0.2

    The direct_test_mode example in nRF5 sdk does not have a specific dependency on the LFCLK, as it does not use the softdevice or any app_timer/rtc instances. It uses the HFXO (HFCLK) for time keeping and radio communication.

     

    That being said, if you use the nrf_clock API, the correct config definitions are prefixed NRF_CLOCK_*. "NRF_SDH_*" is the configuration that you provide to the softdevice.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    Our board doesn't have LFXO, but I want to run DTM. When I try to switch to LFRC by changing sdk_config.h, it doesn't take effect.

    chip: nRF52832

    SDK: nRF5_SDK_17.0.2

    The direct_test_mode example in nRF5 sdk does not have a specific dependency on the LFCLK, as it does not use the softdevice or any app_timer/rtc instances. It uses the HFXO (HFCLK) for time keeping and radio communication.

     

    That being said, if you use the nrf_clock API, the correct config definitions are prefixed NRF_CLOCK_*. "NRF_SDH_*" is the configuration that you provide to the softdevice.

     

    Kind regards,

    Håkon

Children
No Data
Related