danielkucera commented on issue #2393: URL: https://github.com/apache/mynewt-core/issues/2393#issuecomment-712887159
following seems to fix the issue with latest master ``` diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_system.c b/hw/mcu/nordic/nrf52xxx/src/hal_system.c index bc390883b..8157e092d 100644 --- a/hw/mcu/nordic/nrf52xxx/src/hal_system.c +++ b/hw/mcu/nordic/nrf52xxx/src/hal_system.c @@ -69,6 +69,7 @@ hal_debugger_connected(void) void hal_system_clock_start(void) { + NRF_CLOCK->TASKS_HFCLKSTOP=1; #if MYNEWT_VAL(MCU_LFCLK_SOURCE) uint32_t regmsk; uint32_t regval; diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_timer.c b/hw/mcu/nordic/nrf52xxx/src/hal_timer.c index b3730f0e5..5ae77adcf 100644 --- a/hw/mcu/nordic/nrf52xxx/src/hal_timer.c +++ b/hw/mcu/nordic/nrf52xxx/src/hal_timer.c @@ -652,6 +652,7 @@ hal_timer_config(int timer_num, uint32_t freq_hz) #if MYNEWT_VAL_CHOICE(MCU_HFCLK_SOURCE, HFXO) /* Make sure HFXO is started */ + /* if ((NRF_CLOCK->HFCLKSTAT & (CLOCK_HFCLKSTAT_SRC_Msk | CLOCK_HFCLKSTAT_STATE_Msk)) != (CLOCK_HFCLKSTAT_SRC_Msk | CLOCK_HFCLKSTAT_STATE_Msk)) { @@ -663,6 +664,7 @@ hal_timer_config(int timer_num, uint32_t freq_hz) } } } + */ #endif hwtimer = bsptimer->tmr_reg; ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org