S32K3: reset reason problem

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

S32K3: reset reason problem

Jump to solution
3,473 Views
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!

Tags (1)
0 Kudos
Reply
1 Solution
3,456 Views
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

View solution in original post

1 Reply
3,457 Views
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