I am working on a device that I want to be able to store powered off for long periods of time. Ideally, I could enter a low power state that the user can exit by plugging in a USB cable.
I was able to find this older devzone post, and want to be able to accomplish "If you manage to put the board in System Off, then it should automatically do a wakeup from System off when the valid VBUS voltage has been detected."
https://devzone.nordicsemi.com/f/nordic-q-a/89069/wake-device-using-usb-in-zephyr
How can I configure this in Zephyr? I tried to use the sys_poweroff command, but it behaves like a system restart instead. Is there a specific power state I need to force, and do I need to make any modification to the .dts so that the vbus signal acts like an interrupt?
https://docs.zephyrproject.org/latest/services/poweroff.html