We are seeing inconsistent suspend/wake-up behavior on our AM335x WEC7 device. So would like to debug what module or interrupt triggered unexpected wake-up after we suspend.
I have tried using KernelIoControl(IOCTL_HAL_GET_WAKE_SOURCE, .... .
But this is always returning SYSWAKE_UNKNOWN.
Is there an alternative method I can use that is properly supported in the AM335x WEC 7 BSP? Thanks