7 years, 1 month ago.

Indicating External Crystal are connected to NRF52832 via pins p0.00 and p0.01.

Is there a way via MBED API to indicate an external crystal is connected to NRF52832 via the MBED API/MBED BLE API? If not how would I go about doing that and the external crystal is connected to P0.00 and p0.01 pins.

Thanks, Ajay.

Question relating to:

The nRF52 Development Kit is a single-board development kit for Bluetooth Smart, ANT and 2.4GHz proprietary applications using the nRF52 Series SoC. This kit supports both development for nRF52832 SoCs.

Any thoughts on this?

posted by Ajay Kashyap 28 Feb 2017

I did bit of digging and saw this piece of source code under the NRF target in mbed-os main branch. Does this mean by default the xternal crystal is used?

nrf5x_lf_clk_helper.h

#ifndef __NRF5X_LF_CLK_HELPER_H_
    
#ifndef MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC
    #define MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC (NRF_LF_SRC_XTAL)
    #warning No configuration for LF clock source. Xtal source will be used as a default configuration.
#endif



#define NRF_LF_SRC_XTAL  2 
#define NRF_LF_SRC_SYNTH 3 
#define NRF_LF_SRC_RC    4

#if MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_SYNTH
    #define CLOCK_LFCLKSRC_SRC_TO_USE (CLOCK_LFCLKSRC_SRC_Synth)
#elif MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_XTAL
    #define CLOCK_LFCLKSRC_SRC_TO_USE (CLOCK_LFCLKSRC_SRC_Xtal)
#elif MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC == NRF_LF_SRC_RC
    #define CLOCK_LFCLKSRC_SRC_TO_USE (CLOCK_LFCLKSRC_SRC_RC)
#else
    #error Bad LFCLK configuration. Declare proper source through mbed configuration.
#endif

#undef NRF_LF_SRC_XTAL
#undef NRF_LF_SRC_SYNTH
#undef NRF_LF_SRC_RC

#endif

Thanks, Ajay

posted by Ajay Kashyap 28 Feb 2017
Be the first to answer this question.