S32K3 Wake up method

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K3 Wake up method

跳至解决方案
2,738 次查看
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 项奖励
回复
1 解答
2,719 次查看
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 项奖励
回复
3 回复数
1,161 次查看
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 

标记 (1)
0 项奖励
回复
2,720 次查看
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 项奖励
回复
834 次查看
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 项奖励
回复