S32K312 UART

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

S32K312 UART

Jump to solution
607 Views
lua40927
Contributor II

Hello, I have a problem when using S32K312.
The CAN CLOCK I used originally was 60M, but I want to change it to 40M.


But after I changed it to 40M, the LPUART1 I used could send messages but could not receive messages (LPUART1 is normal at 60M).


The problem is that I see that the CLOCK of LPUART1 is AIPS_SLOW_CLK. Even if I change the CAN CLOCK from 60M to 40M, the value of AIPS_SLOW_CLK is not changed.
How can I solve this problem?


The following is the CLOCK setting of CAN CLOCK60M

60M.png
The following is the CLOCK setting of CAN CLOCK40M

40M.png
The following is the setting of LPUART1

UART.png
The following is the UART send/receive function I use

FUNCTION.png

Thanks

0 Kudos
Reply
1 Solution
539 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

keep the CORE/PLAT/SLOW clk ratios as stated in the chapter 24.7.2 System clocking configurations of the device RM. So for Option B config it is 1/2/4. If you need 40MHz on AIPS_PLAT_CLK, you should lower other clks as well to keep ratios as stated for this config.

BR, Petr

View solution in original post

0 Kudos
Reply
2 Replies
540 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

keep the CORE/PLAT/SLOW clk ratios as stated in the chapter 24.7.2 System clocking configurations of the device RM. So for Option B config it is 1/2/4. If you need 40MHz on AIPS_PLAT_CLK, you should lower other clks as well to keep ratios as stated for this config.

BR, Petr

0 Kudos
Reply
534 Views
lua40927
Contributor II

Thank you very much for your reply

0 Kudos
Reply