S32K3: reset reason problem

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

S32K3: reset reason problem

ソリューションへジャンプ
3,483件の閲覧回数
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,466件の閲覧回数
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,467件の閲覧回数
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