Dear experts,
I'd like a explanation or application note about LIN slave example code in S32k SDK with power mode control.
I would like for MCU to go VLPS mode when LIN slave node is sleep and to go VLPR(or RUN) when it wakes up.
I checked MCU wakes up using LIN RXD pin with port ISR, but where to insert POWER_SYS_SetMode(..) function to go to sleep and to wake up in the example of 'lin_slave_baremetal_s32k116'
Thank you for your advices.
Hello @JunchanKwon,
All the peripherals that are not supported in VLPS should be disabled before the transition.
But otherwise, it is up to you.
The MCU will resume its operation right after the WFI instruction again.
Regards,
Daniel