The example have two interrupts as a wakeup source, one with the RTC as you say, and the other with the wake-up pin, you could try using the second one.
Or if you not have routed this you could try checking directly with the CAN interrupt as a source for the router event.
Please let me know if this helped you.
Hi Lane Lutgen,
If you want to test if your MCU is going to Sleep Mode, I suggest to see the example misc_pmc_states, in the code bundle of the MCU.
Also please check the initialization of the Event Router, there you can set the CAN interrupt as a wake up source.
I hope this will help you.
Thanks Alexis I did try this. However, my custom board does not have the 32 kHz clock source from the RTC that is required for the Event Router and the Alarm Timer in that example project.
After initialization, I call the sleep code after 30 seconds. After the __WFI() call, I do a reset. The device has an LCD screen and I can observe the device doing the reset every 30 seconds both with and without the debugger. I'm starting to suspect that maybe it is the SysTick interrupt that is preventing the hang, but I thought that the __WFI() call only cared about NVIC interrupts.