The S32K148 occasionally triggers a "Stop mode acknowledge error" when it goes to sleep

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The S32K148 occasionally triggers a "Stop mode acknowledge error" when it goes to sleep

1,092 Views
ananan
Contributor III

ananan_0-1640223471613.png

Occasionally falling asleep triggers a reset, as shown above. The watchdog reset is occasionally triggered when the watchdog is turned on and when sleeping

0 Kudos
Reply
5 Replies

1,075 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

1,073 Views
ananan
Contributor III

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).

0 Kudos
Reply

1,070 Views
danielmartynek
NXP TechSupport
NXP TechSupport

If I'm not mistaken, this function Can_SetControllerMode(CAN_T_STOP) should set the MDIS bit and wait for LPMACK automatically.

 

Regards,

Daniel

 

 

0 Kudos
Reply

1,060 Views
ananan
Contributor III

I did what you asked,but it does not set the MDIS bit

ananan_0-1640306861801.png

 

0 Kudos
Reply

1,040 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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():

danielmartynek_0-1640778650207.png

 

Regards,

Daniel

 

0 Kudos
Reply