Explanation of LIN slave example code in S32K SDK with power mode (VLPS <-> VLPR/RUN)

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

Explanation of LIN slave example code in S32K SDK with power mode (VLPS <-> VLPR/RUN)

449 Views
JunchanKwon
Contributor I

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.

0 Kudos
Reply
1 Reply

422 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply