How to adjust FlexCAN clock source for CAN requirement of S32K312?

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

How to adjust FlexCAN clock source for CAN requirement of S32K312?

跳至解决方案
263 次查看
f-nelson
Contributor III

Hi NXP:
we have tested CAN-FD function with PCAN device as loopback behavior and it can work well.
nowadays we got CAN-FD specification from customer, they need CAN clock 40Mhz for communication bewteen 500Kbps and 2Mbps.
this project is from FreeRTOS sample code and have modified FlexCAN clock source from 24Mhze(FIRC_CLK) to 30Mhz(AIPS_PLAT_CLK).
currently, I can't adjust FlexCAN clock source 40Mhz for customer.please help us, many thanks.

environment:
MCU:S32K312/100pin
S32DS Product:3.5.0.202207261815
RTD S32KXX:RTD5.0.0.202407261948
SW32K3_FreeRTOS_11.1.0_5.0.0_CD1_D2409_Example Project

sample project attachment:
FreeRTOS_S32K312_FlexCAN_clk.7z

BR
Nelson

0 项奖励
回复
1 解答
243 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

CAN PE clock can be derived from AIPS_PLAT, FIRC or FXOSC clock sources.
If customer really need to have 40MHz CAN PE clk, even if this is not necessary for used bitrate setting, then they either need to use 40MHz external crystal in their design, or need to reduce CORE_CLK to 80MHz so then AIPS_PLAT_clk will be 40MHz.

BR, Petr

在原帖中查看解决方案

0 项奖励
回复
1 回复
244 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

CAN PE clock can be derived from AIPS_PLAT, FIRC or FXOSC clock sources.
If customer really need to have 40MHz CAN PE clk, even if this is not necessary for used bitrate setting, then they either need to use 40MHz external crystal in their design, or need to reduce CORE_CLK to 80MHz so then AIPS_PLAT_clk will be 40MHz.

BR, Petr

0 项奖励
回复