s32v234sbc can communication cansend candump question

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

s32v234sbc can communication cansend candump question

5,225件の閲覧回数
liujinbao
Contributor II

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:

pastedImage_1.png

The hardware connection is as follows: can0 is connected to zlgcan, and the terminal resistance is 60Ω:

pastedImage_2.png

Use the following command to receive the can frame. s32v234-sbc does not receive can frame:

pastedImage_3.png

S32v234-sbc sends can frame, and cantest does not receive it. 

Thank you for help.

______________________________

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

4,659件の閲覧回数
stanish
NXP Employee
NXP Employee

Just my 2 cents...

The termination resistor for CAN bus should be 120 Ohm at each bus end.

S.

0 件の賞賛
返信

4,659件の閲覧回数
nxf46962
NXP Employee
NXP Employee

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

0 件の賞賛
返信

4,659件の閲覧回数
KushalShahNXP
NXP Employee
NXP Employee

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

0 件の賞賛
返信

4,659件の閲覧回数
liujinbao
Contributor II

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):

pastedImage_1.png

Its label location is:

pastedImage_3.png

Do you have a recommended version of bsp?Or what advice is there on implementing CAN communication?

Thank you very much!

0 件の賞賛
返信

4,659件の閲覧回数
KushalShahNXP
NXP Employee
NXP Employee

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

0 件の賞賛
返信

4,659件の閲覧回数
liujinbao
Contributor II

未命名图片.png

I use the CAN-FD device to send messages on the other side, but there is no message display under the candump.

0 件の賞賛
返信

4,659件の閲覧回数
sumit_shrestha
Contributor II

@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.

0 件の賞賛
返信

4,659件の閲覧回数
liujinbao
Contributor II

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.

0 件の賞賛
返信

4,659件の閲覧回数
liujinbao
Contributor II

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?

0 件の賞賛
返信

4,659件の閲覧回数
paulvlase
NXP Employee
NXP Employee

Hi liujinbao‌,

On this community we handle questions regarding NXP Vision Toolbox for MATLAB.

Kushal Shah

Do you know anyone that might be able to answer this question?

Thank you!

0 件の賞賛
返信