current consumption in k_sleep

Hi,

we have a custom board with the nrf54l15 and are doing power optimizations for standby. Our device will never go to SYSTEM OFF as the init draws to much power.

We expect a difference between SYSTEM ON idle and SYSTEM OFF of around 2µA, but we measure a difference of 17µA while sleeping with with k_sleep compared to sys_poweroff.

We checked all peripherals we used, but they seem disabled. Any ideas, where the 17µA could result from? Is there some code/tool, that goes through all peripherals and states what is still active?

Parents Reply
  • Hallo,

    changing the sense-edge-mask has an influence on the current. However, I don't get interrupts any more. Does the API change when using port events?

    gpio_pin_configure_dt(&drv_cfg->int_gpio, GPIO_INPUT);

    gpio_init_callback(&drv_data->gpio_cb, tmag5273_irq_handler, BIT(drv_cfg->int_gpio.pin));
    gpio_add_callback(drv_cfg->int_gpio.port, &drv_data->gpio_cb);
    gpio_pin_interrupt_configure_dt(&drv_cfg->int_gpio, GPIO_INT_LEVEL_ACTIVE);
Children
Related