S32K142 LPIT and CLOCK error

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

S32K142 LPIT and CLOCK error

ソリューションへジャンプ
630件の閲覧回数
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 解決策
620件の閲覧回数
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 返信
621件の閲覧回数
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 件の賞賛