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

nRF52832 current consumption in sleep mode

Hi,

I am using the PCA10040 DK (v1.1.1) to measure the current consumption in sleep mode and the current is about 200 uA. (3V, DCDC Enable)

Following is the code, it's really simple. For current leakage, I set some pin to low, but I am not sure if it is useful.

Could you give me some advice? I am grateful for your help. Thanks!!

int main(void)
{	
    nrf_gpio_cfg_output(5);
    nrf_gpio_cfg_output(6);
    nrf_gpio_cfg_output(7);
    nrf_gpio_cfg_output(8);
    nrf_gpio_cfg_output(18);
    nrf_gpio_cfg_output(21);

    nrf_gpio_pin_clear(5);
    nrf_gpio_pin_clear(6);
    nrf_gpio_pin_clear(7);
    nrf_gpio_pin_clear(8);
    nrf_gpio_pin_clear(18);
    nrf_gpio_pin_clear(21);

    timers_init();
    ble_stack_init();

    sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);
    sd_ble_gap_tx_power_set(0);


    gap_params_init();
    advertising_init();
    services_init();
    conn_params_init();
    advertising_start();

    // Enter main loop.
    for (;;)
    {
       power_manage();
    }
}
Related