Query about Reset problem in S32K344

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

Query about Reset problem in S32K344

ソリューションへジャンプ
3,219件の閲覧回数
sun15021414801
Contributor II

Hello,

I'm having a problem with s32k344 where the mcu keeps resetting while the code is running.

If the Lauterbach emulator is connected, there will be no problems, but if the chip is repowered, there will be problems.

I checked the value of the ME_RGM register and the Reset Reason and found it was HSE_SWT_RST reset.

I guess it has something to do with POR WDG,I want to close POR_WDG, Is there any sample code?

Thank you.

sun15021414801_0-1685804623540.png

 

 

0 件の賞賛
返信
1 解決策
2,996件の閲覧回数
sun15021414801
Contributor II

Thank you. There is a problem with the HSE CLK configuration.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
3,102件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @sun15021414801,

Can you share the clock configuration?

Especially the CORE_CLK and the HSE_CLK freq.

 

Thank you,

BR, Daniel

0 件の賞賛
返信
2,997件の閲覧回数
sun15021414801
Contributor II

Thank you. There is a problem with the HSE CLK configuration.

0 件の賞賛
返信
2,302件の閲覧回数
chosp
Contributor III

Next time the community would appreciate your progress being shared. I struggled with your very same problem, and I am indeed sharing the clocking issue solution details, with the S32K388, but I guess they apply to the entire S32K family.

Check AIPS_SLOW_CLK and HSE_CLK values. Also check DCM record regarding HSE_CLK_MODE_OPTION. With this, you know the ratio (either 1:2 or 1:4) that those clocks shall comply with.

If you are using S32K388 there is an extra step. The HSE_CLK_MODE_AND_GSKT_CTRL DCF record has to be verified, and modified accordingly to allow for the S32K388 selected clocking scheme between HSE and HSE_IAHB.

With this, the HSE_SWT_RST functional reset is gone!

 

@danielmartynek 

3,210件の閲覧回数
sun15021414801
Contributor II
スポイラ
Sorry, my description is wrong. I check the MC_RGM register and see that the value of HSE_SWT_RST register is 1. Please help me judge the problem
0 件の賞賛
返信