Occasionally falling asleep triggers a reset, as shown above. The watchdog reset is occasionally triggered when the watchdog is turned on and when sleeping
Hello @ananan,
Do you use FlexCAN?
If so, please disable the module before the transition to VLPS.
Discussed here: https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/td-p/1176208
Regards,
Daniel
Thank you very much for your answer, but I CAN't find the interface function to close the CAN module. The version I use is MCAL (S32K14X_MCAL4_3_RTM_P2_1_0_1).
If I'm not mistaken, this function Can_SetControllerMode(CAN_T_STOP) should set the MDIS bit and wait for LPMACK automatically.
Regards,
Daniel
I did what you asked,but it does not set the MDIS bit
Hello @ananan,
I'm sorry, it should be Can_SetControllerMode(), but the parameter should be CAN_CS_STOPPED, instead of CAN_T_STOP. For further debugging, you can check whether this line of code can be reached in Can_FlexCan_SetControllerToStopMode, which shall be called by Can_SetControllerMode():
Regards,
Daniel