Hi @PetrS ,
I tried using your code at following link :
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-FlexCAN-Pretended-Networking-STOP-m...
Also I made following changes to code to use in my application:
1. Disabled timeout wakeup in CTRL1_PN.
2. Used CAN wakeup ID specific to my requirement.
Results:
1. Controller is going to STOP mode and wakeup when the CAN frame is arrived with Wakeup ID. But this works only in debug mode and when the debugger is disconnected, Wakeup doesn't work.
2. Also I see current consumption difference in Power supply in STOP mode with and without debugger connected
1. 26 mA (Debugger connected)
2. 17 mA (Debugger Not connected)
So, Can I get the solution to wakeup the controller even if debugger is not connected.
Also I have following doubt after going through the example code shared:
Example code have used STOP2 mode with Pretended Networking mode on FlexCAN0 which is not matching the User manual. User manual says that STOP1 will work with Pretended Networking mode to wakeup with CAN.
Thanks,
Akshay.