Hi,
We have ported linux :
Linux CMS5 2.6.35.3-670-g914558e-svn1803 #43 PREEMPT Wed Mar 19 12:01:03 IST 2014 armv5tejl GNU/Linux.
We have initially Enabled cano interface and tested which works fine. Later we moved on to enable can1 interface. But eventually we are facing problems with can1 when there is no device connected to the bus.
can1 interrupts keeps on increamenting with count of 1000 per sec.
root@ ~$ cat /proc/interrupts [J
CPU0
6: 0 - pswitch
8: 18 - can0
9: 2013315 - can1
38: 0 - fb_irq
39: 0 - mxs-pxp
this is the register dump for both can interfaces .
root@ ~$ cat /sys/devices/platform/FlexCAN.0/dump_reg
MCR::0x4087023f
CTRL::0x2a4e0c4
RXGMASK::0x0
RX14MASK::0x0
RX15MASK::0x0
ECR::0x0
ESR::0x30
IMASK2::0xffffffff
IMASK1::0xffffffff
IFLAG2::0x0
IFLAG1::0x0
root@ ~$
root@~$ cat /sys/devices/platform/FlexCAN.1/dump_reg
MCR::0x4087023f
CTRL::0x2a4e0c4
RXGMASK::0x0
RX14MASK::0x0
RX15MASK::0x0
ECR::0x80
ESR::0x250
IMASK2::0xffffffff
IMASK1::0xffffffff
IFLAG2::0x0
IFLAG1::0x0
BUS STATE :
root@ ~$ cat /sys/devices/platform/FlexCAN.1/state
Start::error passive
root@ ~$ cat /sys/devices/platform/FlexCAN.0/state
Start::bus off
can 0 comes back from Bus off state to normal state but this behaviour is not observe in case of can1.
also i found that my loopback bit is set in CTRL register. which probably dont need to be set ? Please suggest me regarding this.
should i enable the AEN bit MCR register ? what all bits should be enabled if this configuration has to enabled ?
Please suggest. thanks in advance .
Message was edited by: hrishikesh choudhary