Describe the bug
When trying to sleep core on NRF52805 using low frequency internal rc oscillator, average current consumption is ~189.50 uA while when using external crystal oscillator, average current consumption is ~ 8 uA.
I can't provide actual application code that I'm running, however, the only difference at Kconfig level it's whether to decide which low frequency crystal is used. I tried to get into the errata section to find out if it was something related to it but it doesn't. Also, I do not have UART enabled, and verification have been made to confirm that there is no GPIO line floating.
How to reproduce
Chip model: NRF52805 CAAA
os: Linux / GNU
sdk-nrf tag: v1.5.1, v1.4.0
Microcontroller is using System ON and DC-DC is enabled
- Use internal rc crystal oscillator
- remove extra capacitors and crystal connected to xtal pins
- leave extra capacitors and crystal connected to xtal pins
- Measure current consumption going into NRF52805
- prj.conf:
- Fullscreen123CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=yCONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=nCONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=n
- Extra configurations:
- Fullscreen1CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_LF_ALWAYS_ON=n
- When device sleeps and debugger is connected these are the register values:
- Fullscreen1234567891011Fields in CLOCK > LFCLKSTAT:SRC: RC 32.768 kHz RC oscillator - Source of LFCLKSTATE: Running LFCLK running - LFCLK stateFields in CLOCK > HFCLKSTAT:SRC: RC 64 MHz internal oscillator (HFINT) - Source of HFCLKSTATE: Running HFCLK running - HFCLK stateFields in CLOCK > LFCLKSRC:SRC: RC 32.768 kHz RC oscillator - Clock sourceFields in CLOCK > HFCLKSTAT:SRC: RC 64 MHz internal oscillator (HFINT) - Source of HFCLKSTATE: Running HFCLK running - HFCLK state
One way to quickly reproduce the behavior it's modifying system off sample on zephyr samples:
Expected behavior
To have similar results on current consumption as when using external crystal oscillator with slightly offset.