AnsweredAssumed Answered

SPC560C05L3 in Standby mode

Question asked by van_kilsdonk.mitchel on Jun 30, 2016
Latest reply on Jul 4, 2016 by van_kilsdonk.mitchel
Hi everybody,

I'm trying to get my SPC560C05L3 into Standby mode, but it's not working. I also tried other modes, and getting the controller into every RUN mode is no problem, but the other modes just don't work. 

I use this bit of code:
ME.MCTL.R = SPC5_ME_MCTL_MODE(STANDBY_MODE) | SPC5_ME_MCTL_KEY;
     ME.MCTL.R = SPC5_ME_MCTL_MODE(STANDBY_MODE) | SPC5_ME_MCTL_KEY_INV;
     if(ME.GS.B.S_MTRANS){
          Send_CAN_message();
     }

but it's not working. I also don't get my CAN message and the processor just continues running the rest of the code. I already checked my wake-ups, and all wake-ups are disabled except 1, and that one doesn't have an active trigger and isn't triggered at all.

Am I missing something to get the controller into standby mode?

Thanks,
Mitchel

Outcomes