S32K3 Wake up method

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

S32K3 Wake up method

Jump to solution
2,627 Views
ZhaozhangChen
Contributor I

Dear Support,

1.I see the following feature in the S32K3 RM, I wonder if this can wake up the MCU when data is received in Standby mode?
Following are the features of the LPUART module.
Support for three receiver wakeup methods:
—Idle line wakeup
—Address mark wakeup
—Receive data match

2.S32K3 Whether the CAN RX pin CAN wake up the MCU from Standby mode after receiving data?

Thank you for your help!

0 Kudos
Reply
1 Solution
2,608 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Zhaozhang,

1. No, this is not supported by LPUART. There's a note in section "76.1.1 LPUART instances and configuration":

"LPUART instances are not available during Standby."

2. FlexCAN itself is also not in Standby Power Domain, so you can't use the FlexCAN module directly to wake up the chip.

However, there's a workaround. See the Wakeup Unit section in the reference manual. WKPU supports 4 internal sources and 60 external sources that can generate interrupts or wakeup events.
It also supports a non-maskable interrupt input.
The wakeup sources are:
WKPU0 : SWT0 wakeup, RTC API wakeup.
WKPU1 : RTC timeout.
WKPU2 : Round robin interrupt from any of the three comparators.
WKPU3 : RTI wakeup
WKPU4 - WKPU63 : External pin wakeup sources

The external pins can be used for this purpose. LPUART_RX pins or CAN_RX pins share the function with WKPU. So, even if LPUART or FlexCAN are in low power mode, these pins can be still configured in WKPU to wake up the chip on rising or falling edge.

Regards
Lukas

View solution in original post

0 Kudos
Reply
3 Replies
1,050 Views
dheeraj
Contributor I

We are working on s32k3112, and looking to wakeup the MCU with FlexCAN message from low power mode. Does this s32k3112 controller supports wakeup from CAN message, if yes, can you brief us how to do that ?

We have gone through the post, but we haven't get the clear picture. Can you elaborate on this ?

@lukaszadrapa @ZhaozhangChen 

Tags (1)
0 Kudos
Reply
2,609 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Zhaozhang,

1. No, this is not supported by LPUART. There's a note in section "76.1.1 LPUART instances and configuration":

"LPUART instances are not available during Standby."

2. FlexCAN itself is also not in Standby Power Domain, so you can't use the FlexCAN module directly to wake up the chip.

However, there's a workaround. See the Wakeup Unit section in the reference manual. WKPU supports 4 internal sources and 60 external sources that can generate interrupts or wakeup events.
It also supports a non-maskable interrupt input.
The wakeup sources are:
WKPU0 : SWT0 wakeup, RTC API wakeup.
WKPU1 : RTC timeout.
WKPU2 : Round robin interrupt from any of the three comparators.
WKPU3 : RTI wakeup
WKPU4 - WKPU63 : External pin wakeup sources

The external pins can be used for this purpose. LPUART_RX pins or CAN_RX pins share the function with WKPU. So, even if LPUART or FlexCAN are in low power mode, these pins can be still configured in WKPU to wake up the chip on rising or falling edge.

Regards
Lukas

0 Kudos
Reply
723 Views
Prasad_330
Contributor III

hi,

I am working on sleep mode and wake up mode on S32k324 controller.

Can you plz share me the sample code for sleep and wake up from GPIO and can

0 Kudos
Reply