Query about Reset problem in S32K344

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

Query about Reset problem in S32K344

跳至解决方案
3,231 次查看
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 解答
3,008 次查看
sun15021414801
Contributor II

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

在原帖中查看解决方案

0 项奖励
回复
4 回复数
3,114 次查看
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 项奖励
回复
3,009 次查看
sun15021414801
Contributor II

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

0 项奖励
回复
2,314 次查看
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,222 次查看
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 项奖励
回复