How to view and retrieve the wakeup reason in S32K344?

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

How to view and retrieve the wakeup reason in S32K344?

1,630 次查看
iverson3ya
Contributor III

How to view and retrieve the wakeup reason in S32K344?

iverson3ya_0-1701245209096.png

I see all zeros in the watch registers. Has the system been reset after wakeup?

via Attach to Running Target

I use PTB0 UART RX as the wakeup source.

EVB: S32K3-T-BOX

RTD3.0.0

S32DS v3.5

 

0 项奖励
回复
4 回复数

1,516 次查看
iverson3ya
Contributor III

problem solved

thanks!

1,618 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Have you already refer to the S32K344_FlexCAN_Wkup_S32DS_3_4_RTD_LLD_2_0 example in S32K3 Low Power Management AN and demos?

What debugger are you using for Attach to Running Target? Have you tried reading the reset reason via Power_Ip_GetResetReason();?


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

1,609 次查看
iverson3ya
Contributor III

I have already seen the demo.

I use Mcu_ResetType Mcu_GetResetReason(void); to display the following reasons:

MCU_SW_DEST_RESET = McuConf_McuResetReasonConf_MCU_SW_DEST_RESET,                           /**< @brief HSE SNVS tamper detected. RGM_DES[F_DR17]. */

iverson3ya_2-1701333276531.png

I am using PEmicro Debugger.

iverson3ya_0-1701331688703.png

iverson3ya_1-1701331738166.png

I have attached my project below. If possible, please help me check where the issue might be.

I enter standby mode through the standby command under FS26_handle.

 

0 项奖励
回复

1,533 次查看
DanNguyenDuy
NXP Employee
NXP Employee

Hello @iverson3ya,

I saw that you didn't call Icu functions to initial wakeup.

Please add some below code into your project and let me know your test result.

Icu_Init();

Icu_EnableWakeup();

Icu_EnableNotification();
 
Or:
Wkpu_Ip_Init();
Wkpu_Ip_EnableInterrupt();
 
Best regards,
Dan
0 项奖励
回复