I am trying to wakeup the micro from stop mode with CAN activity but having no luck. I have an external interrupt on port B that wakes it up. I set a breakpoint at the line after STOP and the port wakeup hits the BP but the CAN wakeup does nothing. CAN works fine in run mode and I verified that SLPAK is true before STOP. Below is the code to configure the CAN wakeup
CANCTL0_SLPRQ = 1;
while (CANCTL1_SLPAK == 0) {};
CANCTL0_WUPE = 1;
CANRIER_WUPIE = 1;
STOP;
BP-> wakeup_init();
Any advice?