S32K3 CANFD support 8Mbps Demo example code?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K3 CANFD support 8Mbps Demo example code?

1,519件の閲覧回数
CherryDeng
Contributor I

Could you help share the 8Mbps CANFD Demo example code in S32K3? Thanks.

0 件の賞賛
返信
6 返答(返信)

1,501件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

as far as I know there is no such example directly, but you can reuse any existed one, let say https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-test... and modify CAN bitrate accordingly using below tool:
https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5xxx-S32Kxx-LPCxxxx-CAN-CAN-FD-bit-timing-cal...
However question could be, do you have CAN transceiver which is capable to run on such rates? What is a board you have?

BR, Petr

0 件の賞賛
返信

1,495件の閲覧回数
CherryDeng
Contributor I

Petr,

We use S32K358+ TJA1462 CANFD.1462.JPG

0 件の賞賛
返信

1,480件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi

ok, do not have such combination, but I modified my old demo for MRCANHUB344, which have TJA1463. So I added test code for FlexCAN2 using 1M/8M bitrate and it is working well with PCAN USB Pro FD connected.

PetrS_0-1741869469518.png

You can refer to that code.

BR, Petr

0 件の賞賛
返信

1,434件の閲覧回数
CherryDeng
Contributor I

Petr:

Another question, how many S32K3 CANFD frames can be sent and received per second by PCAN View?

0 件の賞賛
返信

1,428件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

this is my measurement on CAN TX line, I see expected signal

PetrS_0-1741939609936.png

PetrS_1-1741939629466.png

Single pulse in data phase is 125ns, that corresponds to 8Mbps rate.
If you see timing issues, check CAN PE clock and CAN bit timing setting.

How many S32K3 CANFD frames can be sent and received per second by PCAN View?
An answer requires to have more inputs, bitrates for both nominal/data phases, payload.
You can see above a message with 1M/8M and 64byte payload take about 110us.

BR, Petr

0 件の賞賛
返信

1,441件の閲覧回数
CherryDeng
Contributor I

Petr,

Thanks for your demo, we test the CANFD data bit waveform, but it is not 8Mbps, it is 3.205Mbps. Could you help check it?

CherryDeng_0-1741914864618.png

 

0 件の賞賛
返信