High sleep current when using the zephyr input subsystem

I have basically all my code disabled, all I do in main() is get a pointer to the "zephyr_console", suspend it and return.

This gives me an average power consumption of 3.23uA. More or less what I expect.

However, if I enable a button using the zephyr input subsystem "zephyr,gpio-keys", even just the definition in the device tree, the average jumps to 16.5uA.

I don't remember getting this kind of waste when using Nordic's CAF to handle buttons.

Did you guys test this new subsystem on you end?

Parents
  • Hello again, and sorry about the wait.

    However, if I enable a button using the zephyr input subsystem "zephyr,gpio-keys", even just the definition in the device tree, the average jumps to 16.5uA.

    Yeah that sounds a bit excessive. I guess that by only adding that definition, we're not specifically making it draw as little power as possible.

    Could you try reading the register of the GPIO to see how it is configured?

    Regards,

    Håkon

Reply
  • Hello again, and sorry about the wait.

    However, if I enable a button using the zephyr input subsystem "zephyr,gpio-keys", even just the definition in the device tree, the average jumps to 16.5uA.

    Yeah that sounds a bit excessive. I guess that by only adding that definition, we're not specifically making it draw as little power as possible.

    Could you try reading the register of the GPIO to see how it is configured?

    Regards,

    Håkon

Children
No Data
Related