however at least the LF clock should be started https://github.com/espruino/Espruino/blob/52352efac4f8f40976a4d268a0a074ad15251b29/targets/nrf5x/jshardware.c#L868
so maybe it is just RTC0 that was forgotten to be started(?) when BLUETOOTH is disabled
so maybe into that
else // !BLUETOOTH
you can put NRF_RTC0->TASKS_START=1 if the poke32(0x4000B000,1) helps
NRF_RTC0->TASKS_START=1
poke32(0x4000B000,1)
EDIT: not sure about PRESCALER for the RTC, maybe default is OK? if not then the clock will run too fast
@fanoush started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
however at least the LF clock should be started
https://github.com/espruino/Espruino/blob/52352efac4f8f40976a4d268a0a074ad15251b29/targets/nrf5x/jshardware.c#L868
so maybe it is just RTC0 that was forgotten to be started(?) when BLUETOOTH is disabled
so maybe into that
you can put
NRF_RTC0->TASKS_START=1
if thepoke32(0x4000B000,1)
helpsEDIT: not sure about PRESCALER for the RTC, maybe default is OK? if not then the clock will run too fast