CAF button wakeup does sometimes not happen in ncs 2.5.0, if pressed again while powering down

In ncs 2.4.0, this code was executed in power_manager.c when button pressed while powering down:

            LOG_INF("Wake up when going into sleep - rebooting");
            sys_reboot(SYS_REBOOT_WARM);
In ncs 2.5.0, this does not happen, leading to no more wakeup from that button if pressed again during power down
Note: Still works OK if button not pressed again until after power down is completed
Using custom board with nRF52840
Parents
  • Hi tellg,

    I have gotten feedback from our team. The issue is indeed with the change to use sys_poweroff(), like you have pointed out.

    sys_poweroff() will put the system int power-off right in place. Therefore, additional events, such as the button presses, were not processed.

    The developers have registered the issue and will work on an alternative approach. I cannot comment on when that will be available though.

    Is this issue critical for you now? If yes, is there any change in NCS 2.5.0 that you need, compared to 2.4.2?

Reply
  • Hi tellg,

    I have gotten feedback from our team. The issue is indeed with the change to use sys_poweroff(), like you have pointed out.

    sys_poweroff() will put the system int power-off right in place. Therefore, additional events, such as the button presses, were not processed.

    The developers have registered the issue and will work on an alternative approach. I cannot comment on when that will be available though.

    Is this issue critical for you now? If yes, is there any change in NCS 2.5.0 that you need, compared to 2.4.2?

Children
Related