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

nRF53833 external oscillator

Hi,

we have an application on a custom PCB using an nRF53833-QDAA.

We are using the latest SDK and soft device.

This PCB uses and external oscillator 32,768 Hz (from external RTC IC) into pin XL1 with pin XL2 floating.

It is a stable 3V square wave.

Our code crashes in: sd_softdevice_enable(&clock_lf_cfg, app_error_fault_handler)

are our settings:

.source = NRF_SDH_CLOCK_LF_SRC = 1
.rc_ctiv = NRF_SDH_CLOCK_LF_RC_CTIV = 0
.rc_temp_ctiv = NRF_SDH_CLOCK_LF_RC_TEMP_CTIV = 0
.accuracy = NRF_SDH_CLOCK_LF_ACCURACY = 7

The first thing is the nrf_clock_lf_cfg_t struct only allows .source to be an 8 bit value but for and external it need to be  0x00030001

I tried changing the nrf_clock_lf_cfg_t but sd_softdevice_enable() retruns and error 7 (wrong value).

Also there is no option in the sdk_config.h file.

For now we are running it synthesized (32.768 kHz synthesized from HFCLK (LFSYNT)). 

What can I do to get the soft device to work from our external oscillator?

Thanks

 

Related