How to view and retrieve the wakeup reason in S32K344?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to view and retrieve the wakeup reason in S32K344?

956件の閲覧回数
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 返答(返信)

842件の閲覧回数
iverson3ya
Contributor III

problem solved

thanks!

944件の閲覧回数
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 件の賞賛
返信

935件の閲覧回数
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 件の賞賛
返信

859件の閲覧回数
nxf78987
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 件の賞賛
返信