S32K312 UART

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

S32K312 UART

跳至解决方案
614 次查看
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 项奖励
回复
1 解答
546 次查看
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 项奖励
回复
2 回复数
547 次查看
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 项奖励
回复
541 次查看
lua40927
Contributor II

Thank you very much for your reply

0 项奖励
回复