How to set CAN-FD from classical CAN usage?

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

How to set CAN-FD from classical CAN usage?

Jump to solution
5,786 Views
f-nelson
Contributor IV

Hi NXP:
we have used classic CAN bus(2.0/fix 8byte data)in s32k312 platform, now we would like to upgrade
CAN-FD format. I set CAN-FD parameters(classical CAN 500Kbit/CAN-FD 2Mbit) and connect to PCAN device, but
I don't know how to modify project as CAN-FD loopback, please help us, thanks.

attachement file:
PCAN_setting-connecting.png
s32k312_can-fd_setting.png
test_CAN.7z

0 Kudos
Reply
1 Solution
5,708 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@f-nelson

The project you provided was modified and the RTD version used is RTD 5.0.0.

View solution in original post

0 Kudos
Reply
5 Replies
5,718 Views
f-nelson
Contributor IV

Hi NXP:
It is mistake about example. in my project, we have been using clock source of AIPS_PLAT_CLK
which is normal speed(30Mhz) and works. becuase I'd like to give you a example, so I didn't change
this clock setting. please modify this example code based on 20250210-test_can.7z for modify CAN to CAN-FD
(64byte and BRS enable), thanks.

0 Kudos
Reply
5,709 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@f-nelson

The project you provided was modified and the RTD version used is RTD 5.0.0.

0 Kudos
Reply
5,645 Views
f-nelson
Contributor IV
it's good example for CAN-FD, many thanks.
0 Kudos
Reply
5,646 Views
f-nelson
Contributor IV
Hi Senlent:
it's good example for CAN-FD, many thanks.
0 Kudos
Reply
5,779 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@f-nelson

In your project, the flexcan module clock is set to 24MHz instead of 30MHz.

Please check the picture, I made some new modifications according to the 24MHz FlexCAN

clock for your reference.

 

0 Kudos
Reply