How to use the CAN Bus on S32V234

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

How to use the CAN Bus on S32V234

3,416 Views
sebastian_kruse
Contributor II

Hi,

I want to use the build in CAN Bus of the S32V234 to communicate with an Teensy 3.2.
For debugging, I've connected a PeakCan USB dongle to the boards CAN0 to send and recieve messages.

I connected my PC via Putty to the board and used the following commands to test it:

ip link show can0
ip link set can0 type can bitrate 500000
ip link set can0 up

But with

candump can0

I don't recieve the messages I send from the PeakCAN software and don't recieve the messages in the software I send with 

cansend can0 610#000000

from the board.

It seems like the board itself as a CAN Node is not active.

Are there any examples about how to test the CAN bus?
How do I then implement the CAN functionality in Matlab?

Thank's for your help!

Sebastian

0 Kudos
5 Replies

3,099 Views
sebastian_kruse
Contributor II

Hi Kushal,

how exactly do I find out which version of the BSP I have? 
I downloaded the latest one from your website, using the installation manual.

On boot, I get the following:

Auto Linux BSP 1.0 s32v234sbc
Does that mean I have BSP1.0?

Where can I download the BSP21?

About the further Questions, I've already created several support tickets I didn't get an answer to. So I decided to post my Issues here, since here someone is answering.

Regards,

Sebastian

3,099 Views
KushalShahNXP
NXP Employee
NXP Employee

Hi Sebastian,

I regret that we are not able to address your tickets fast enough. I will check with the team to get them addressed quickly.

Now regarding your questions,

When you log in to download the BSP. You will see the following screen. In this case V21.0 at the end of SW32XX-LINUXBSP01-RTM-V21.0 signifies the BSP version.


pastedImage_1.png

Moreover, which installation manual are youreferring to? If it is Linux User Manual thenit also mentions its BSP version.

Regards,

Kushal

0 Kudos

3,099 Views
paulvlase
NXP Employee
NXP Employee

Kushal Shah, can you help us here?

0 Kudos

3,099 Views
KushalShahNXP
NXP Employee
NXP Employee

Hi sebastian.kruse@gmx.net‌, 

What version of BSP are you using?

We had a known bug in BSP 19 and 20 that CAN starts only in CAN-FD mode.

In BSP21, it has been resolved and now you can select between CAN and CAN-FD modes.

Info for any future questions,

We only support tools like S32 Design Studio and Model Based Design Tool for Vision via communities.

For BSP, Vision SDK or S32V234 devices, please log a support ticket at www.nxp.com/support >> Support Requests and experts will address your questions.

Regards,

Kushal

0 Kudos

3,099 Views
jimingjiang
Contributor I

Hi Keshal,

Our project is using BSP19, so can you  provide me with a bug fix method that allows us to use CAN based BSP 19.

thanks.

Kevin

0 Kudos