I'm trying to use the SLFWAK mechanism in FlexCAN to wake up from STOP mode. I've been unable to get it to function correctly..
My hardware uses the MCP2562 transceiver and the FlexCAN configuration is as follows:
- FD Enabled
- FRZ mode set before STOP mode entry
- WAKMSK and SLFWAK both set
- FlexCAN peripheral clock enabled in STOP mode.
I noticed two things as I've worked on this. The first is that I don't see an interrupt vector for FlexCAN WAKINT, second is that I haven't been able to wake the chip by any means if I have the debugger attached. I'm using GHS MULTI 6.16 and the GHS Probe. This issue is irritating, but I can work around it. My application must be able to wake up on CAN so this is a show-stopper right now.