Problem in CAN Frame Transmission in iMX28 EVk linux 2.6.35

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problem in CAN Frame Transmission in iMX28 EVk linux 2.6.35

869 次查看
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$

标签 (1)
0 项奖励
回复
3 回复数

741 次查看
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 项奖励
回复

741 次查看
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 项奖励
回复

741 次查看
santhoshkarthik
Contributor III

Hi

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

0 项奖励
回复