This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

low current value in sleep_mode_enter ()

Hi,

I am using 

  • Custom Board(nRF52840)
  • SDK 15.3.0
  • Keil IDE
  • The soft device is S140 
  • JLinkRTTViewer for debug
My board has two leds and two buttons for door open / close.
When entering the System Off mode using the sleep_mode_enter () function, the current consumption varies between 11uA and 34uA.
I know that current consumption is less than 1uA when in System Off mode.
Please advise.

Alex

int main(void)
{
    // Initialize.
	gpio_led_init();
    power_management_init();
    ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    conn_params_init();

	sleep_mode_enter();
}

  • Hi, 

    I ran the code you recommended.

    I also ran the existing code.

    I've attached a video clip of the execution of the two kinds of code.

    I attached sdk_config.h together.

    Thank you

    8206.sdk_config.h

  • Are you sure that the code actually goes all the way to NRF_POWER->SYSTEMOFF = 1 line? I'm thinking that it hard faults and resets before it gets to that line, and that the current jumps you are seeing on the multimeter is actually the device restarting, over and over again.

    Can you post the hex-file here, then I can try to run it and see what happens. If you can make sure that it is possible to run on a DK, not just your custom hardware, that would be great.

  • HI,

    I am using s112 for 52810.

    I attached a hexa file.

    I always appreciate your kind response.

    Alex

    nrf52810_xxaa.hex

  • Hi, the code is resetting. It starts the LFXO which takes 250ms, and during this time it's in idle mode consuming about 2uA. Then something happens and it resets. It never reaches the SYSTEMOFF line. So the current bursts you are seeing is the chip resetting.

  • Hi Stian,

    Thank you for your quick and friendly reply.

    I agree with you too.

    But looking at the source code I can't figure out where this happens.

    I zip the program and attach it.

    I think it has entered SystemOff mode as the current draw drops to 0.6 ~ 0.7uA.

    Alex

    sokey - 52810.zip

Related