#s32k146
I have configured CAN0 as the wakeup source and I'm using the pretended network feature.
But just after entering STOP2 mode, the MCU wakes up on it own even though no CAN message was sent in the bus. I've disabled all other peripherals and the systick timer is also disabled.
Solved! Go to Solution.
My bad. I had left WTOF bit set in WU_MTC register.
Clearing this bit solves this issue.
My bad. I had left WTOF bit set in WU_MTC register.
Clearing this bit solves this issue.
Just to be sure, did you follow the STOP mode entry sequence that is described in section 5.5 (STOP and VLPS mode entry sequence) of the application note: Power Management for S32K1xx?
B.R.
VaneB
@VaneB
Yes, I'm following the entry sequence mentioned. I tried by configuring GPIO wake up from stop2 mode, it works fine(MCU remains in sleep until GPIO state change). So, I feel there shouldn't be any mistake with the entry sequence.
But when I try with CAN wake up, this issue where MCU wakes just after entering stop2 mode occurs. Even I've verified that no resets occurred during sleep entry and exit.