hello. I am using the CAN communication function of s32v234-sbc.
I did the following: ip link set can0 type can bitrate 500000
ifconfig can0 up
ifconfig can0
As shown below:
The hardware connection is as follows: can0 is connected to zlgcan, and the terminal resistance is 60Ω:
Use the following command to receive the can frame. s32v234-sbc does not receive can frame:
S32v234-sbc sends can frame, and cantest does not receive it.
Thank you for help.
______________________________
Just my 2 cents...
The termination resistor for CAN bus should be 120 Ohm at each bus end.
S.
hello jinbo,
do you have reslove the question? if you want use the CAN normal mode in BSP19.
you should use can-util tool to candump or cansend message. the canutils 4.0.6 package, which is used by default in our images have some issue for it.
best regards
deqing.liu
Hi liujinbao,
Which BSP version you are using?
Information for future questions:
We do not support S32V devices at NXP communities. We only support tools(S32 Design studio and MATLAB Toolbox) related questions here.
For S32V related questions and support, please create a case by going to nxp.com/support >> support request.
Regards,
Kushal
hello.The BSP version I am using is VisionSDK_S32V2_RTM_1_3_0_img_yocto.
On the official website,the file name is as follows (yellow box):
Its label location is:
Do you have a recommended version of bsp?Or what advice is there on implementing CAN communication?
Thank you very much!
Hi liujinbao,
The prebuilt sd-card you are using is based on BSP19. In BSP19 and BSP20, the can drivers always works in CAN-FD mode. So if you are trying to send normal can messages, it won't detect it.
We have recently released BSP 21, where it allows user to enable or disable CAN-FD feature.
So I would recommend to download pre-built binaries from here: http://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32XX-LINUXBSP01D
But this BSP binaries does not support VSDK out of the box.
You can follow the procedure described in Linux BSP User manual to compile your custom Linux with VSDK support.
Or alternatively you can just send CAN-FD messages to S32V with your current binaries.
Regards,
Kushal
I use the CAN-FD device to send messages on the other side, but there is no message display under the candump.
@liu jinbao, so were you able to use Extended CAN in S32V? Even I am currently stuck. I can read the 11bit CAN IDs but unable to read 29 bit CAN IDs.
Is the can-fd of S32V234 not compatible with can?
What I heard is that CAN FD is fully compatible with CAN, ie each CAN FD controller can send and receive legacy CAN frames.
Hello.
Can I use the S32DS to add CAN-FD receive and send instructions to the VSDK Example? For example ifconfig can0 up...
What should I do if I want to use CAN-FD in S32DS?