S32K312 UART

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
603件の閲覧回数
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 解決策
535件の閲覧回数
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 返答(返信)
536件の閲覧回数
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 件の賞賛
返信
530件の閲覧回数
lua40927
Contributor II

Thank you very much for your reply

0 件の賞賛
返信