Problem in CAN Frame Transmission in iMX28 EVk linux 2.6.35

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

Problem in CAN Frame Transmission in iMX28 EVk linux 2.6.35

962 Views
santhoshkarthik
Contributor III

Hi,

  I am not able to set bitrate using below command,

 ip link set can0 type can bitrate 125000

Instead, I did following command to set the bit rate

# echo 125000 > /sys/devices/platform/FlexCAN.0/bitrate

But, I am trying send CAN frame using following Command

cansend can1 -i 0x10 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88

In Second Board, I was using following command to receive the CAN frame

candump can1

But I am not getting anything. Please suggest me to resolve this issue as soon as possible

root@mx28evk /sys/devices/platform/FlexCAN.1$ candump can1
interface = can1, family = 29, type = 3, proto = 1

root@mx28evk /sys/devices/platform/FlexCAN.1$

Labels (1)
0 Kudos
Reply
3 Replies

834 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

I do not know if you still have a problem. But, did you set the correct drivers in the menuconfig for FlexCan?

Best Regards,

Diego.

0 Kudos
Reply

834 Views
santhoshkarthik
Contributor III

Hi @Diego Adrian Cuevas,

    Yes Still the problem is there, I enabled correct drivers for FlexCAN and also I enabled drivers which is related Iptool. Can you please suggest a solution to solve this issue.

0 Kudos
Reply

834 Views
santhoshkarthik
Contributor III

Hi

  Can anyone suggest solution for above problem. I am not able receive the data using candump can1

0 Kudos
Reply