diff --git a/CMakePresets.json b/CMakePresets.json index f4c52b6..cf3bf2d 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -13,7 +13,7 @@ "cacheVariables": { "NCS_TOOLCHAIN_VERSION": "NONE", "BOARD": "nrf54l15dk/nrf54l15/cpuapp", - "EXTRA_CONF_FILE": "iso.conf;internal_osc.conf;lfxo.conf", + "EXTRA_CONF_FILE": "iso.conf;clk.conf", "CONF_FILE": "prj.conf", "DTC_OVERLAY_FILE": "bl54l15_radio0_radio1.overlay" } diff --git a/clk.conf b/clk.conf new file mode 100644 index 0000000..99784de --- /dev/null +++ b/clk.conf @@ -0,0 +1,9 @@ +# 1. Disable the Crystal and RC Oscillators +CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=n +CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y + +# 2. Enable the Synthesized Clock (LFSYNT) +CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=n + +# 3. Claim High Accuracy (Because it is backed by the HFXO) +CONFIG_CLOCK_CONTROL_NRF_K32SRC_250PPM=y \ No newline at end of file diff --git a/internal_osc.conf b/internal_osc.conf deleted file mode 100644 index 86f6a47..0000000 --- a/internal_osc.conf +++ /dev/null @@ -1,4 +0,0 @@ -# use internal 32kHz oscillator -CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y -# select desired accuracy (more calibrations would be nececcary if smaller) - I think the 32KHz oscillator is only needed for receive -CONFIG_CLOCK_CONTROL_NRF_K32SRC_250PPM=y diff --git a/lfxo.conf b/lfxo.conf deleted file mode 100644 index ae374c2..0000000 --- a/lfxo.conf +++ /dev/null @@ -1,4 +0,0 @@ -CONFIG_CLOCK_CONTROL=y -CONFIG_CLOCK_CONTROL_NRF=y -CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y -CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=n diff --git a/prj.conf b/prj.conf index 986dae0..6e9ce18 100644 --- a/prj.conf +++ b/prj.conf @@ -7,8 +7,8 @@ CONFIG_UART_INTERRUPT_DRIVEN=y CONFIG_CLOCK_CONTROL=y CONFIG_CLOCK_CONTROL_NRF=y -CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y -CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=n + + CONFIG_BT=y CONFIG_BT_CTLR=y CONFIG_BT_LL_SOFTDEVICE=y