S32K142 LPIT and CLOCK error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K142 LPIT and CLOCK error

Jump to solution
591 Views
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 Kudos
1 Solution
581 Views
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

View solution in original post

0 Kudos
1 Reply
582 Views
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 Kudos