From 978548e74975647981ac4317e8144e2f57dbbc5f Mon Sep 17 00:00:00 2001 From: Tobias Gunkel Date: Mon, 11 Mar 2024 02:38:21 +0100 Subject: [PATCH] Do not set LFCLKSRC as it will hang if no external crystal is present --- src/nrf_to_nrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nrf_to_nrf.cpp b/src/nrf_to_nrf.cpp index d9ce0b3..d074625 100644 --- a/src/nrf_to_nrf.cpp +++ b/src/nrf_to_nrf.cpp @@ -90,10 +90,10 @@ bool nrf_to_nrf::begin() // Do nothing. } - NRF_CLOCK->LFCLKSRC = (CLOCK_LFCLKSRC_SRC_Xtal << CLOCK_LFCLKSRC_SRC_Pos); NRF_CLOCK->EVENTS_LFCLKSTARTED = 0; NRF_CLOCK->TASKS_LFCLKSTART = 1; + /* Wait for the low frequency clock to start up */ while (NRF_CLOCK->EVENTS_LFCLKSTARTED == 0) { // Do nothing. }