S32K142 LPIT and CLOCK error

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

S32K142 LPIT and CLOCK error

跳至解决方案
870 次查看
Ada_Lovelace
Contributor IV

Hi,all

I have a board about S32K142, external crystal is 40Mhz, I config the code referencing the S32K1xx_Clock_Calculator_Rev1.

But when I set the LPIT,I meet the problem:

The code crashs,it does not work. I debug that finding it when I give the value to LPIT, it 

debug error, I successfully  run the project when I have the EVB board, which the external crystal is 8Mhz.

What should I do to fix it?Snipaste_2021-08-10_15-12-19.pngSnipaste_2021-08-10_15-13-06.pngSnipaste_2021-08-10_15-22-04.pngSnipaste_2021-08-10_15-22-12.pngSnipaste_2021-08-10_15-22-27.png

 

0 项奖励
回复
1 解答
860 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Ada_Lovelace,

It seems like you use SPLLDIV2 as the peripheral clock.

But is SPLLDIV2 really 40MHz?

With 40Mhz crystal and MULT = 24, Prediv = 0

danielmartynek_1-1628588060192.png

danielmartynek_0-1628588018005.png

 

Regards,

Daniel

在原帖中查看解决方案

0 项奖励
回复
1 回复
861 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Ada_Lovelace,

It seems like you use SPLLDIV2 as the peripheral clock.

But is SPLLDIV2 really 40MHz?

With 40Mhz crystal and MULT = 24, Prediv = 0

danielmartynek_1-1628588060192.png

danielmartynek_0-1628588018005.png

 

Regards,

Daniel

0 项奖励
回复