S32K3: reset reason problem

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

S32K3: reset reason problem

跳至解决方案
3,474 次查看
gumu
Contributor V

Hello NXP team,

We want to get power up reason by calling interface Power_Ip_GetResetReason() at bootloader stage and the value is as expected,  

After system is run from bootloader to APP stage, we also call Power_Ip_GetResetReason() to get reset reason, but can't get the right value. It seems that the reset reason is cleared by Power_Ip_GetResetReason() .

Here is log information of  bootloader and APP.

 

 

........
S32K314 Bootloader SW version:2.0.0
bootloader: ResetReason = 0X0
error **bleep** = 0 wd err = 0
APP:reset reason = 0x19
.........

 

 

I wonder if there is a good way to solve this problem.

Thanks!

标记 (1)
0 项奖励
回复
1 解答
3,457 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @gumu 

To avoid multiple reset reasons when the user calls Power_Ip_MC_RGM_GetResetReason() should ensure that the reset reason is cleared once it has been read. This function is called by Power_Ip_GetResetReason(), therefore when you call this function the reset reason can only read one time.

If you want to read the reset reason more than once you need to do some changes to the functions, but this is up to you.

 

B.R.

VaneB

在原帖中查看解决方案

1 回复
3,458 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @gumu 

To avoid multiple reset reasons when the user calls Power_Ip_MC_RGM_GetResetReason() should ensure that the reset reason is cleared once it has been read. This function is called by Power_Ip_GetResetReason(), therefore when you call this function the reset reason can only read one time.

If you want to read the reset reason more than once you need to do some changes to the functions, but this is up to you.

 

B.R.

VaneB