AnsweredAssumed Answered

Disable and re-enable UART with VLPS mode of operation

Question asked by HARI KRISHNA KAPPARAPU on Apr 5, 2019
Latest reply on Apr 10, 2019 by HARI KRISHNA KAPPARAPU

Hello Team,

 

This is about S32K148 power down modes and LPUART.

 

I am able to switch between VLPS and RUN modes with UART enabled.

But my use case is to enable UART only during RUN mode and disable that communication in VLPS mode. 

I am able to disable the interrupt, but not renabled with below code sequence

 

PSEUDO CODE:

INT_SYS_DisableIRQ ( LPUART2_RxTx_IRQn );
POWER_SYS_SetMode ( VLPS, POWER_MANAGER_POLICY_AGREEMENT )
INT_SYS_EnableIRQ ( LPUART2_RxTx_IRQn );

 

Can someone suggest with any example code to do the same please?

 

Thanks,

Hari

Outcomes