imx35 and CAN bus receive issue

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

imx35 and CAN bus receive issue

673 Views
jounimo
Contributor I

hi all,

 

I compiled the linux core 2.6.31 for imx35 and I selected FlexCAN drivers in LTIB. I'm using Freescale's 3-stack board. The problem is that I can transmit CAN messages successfully but I cannot receive anything (the input buffer is empty in the driver).

I have a working CAN bus system where I can see messages from the imx35 board. Other devices communicates successfully, but imx35 does not receive the messages.

 

The core is 2.6.31

Bitrate is 125000

Toolchain is 4.3.3 for ARM

 

the initialization sequence is:

echo 28 > /sys/devices/platform/FlexCAN.0/br_presdiv

ifconfig can0 up

 

I receive some garbage in the beginning/end when I start/end my application but that's all. I have tried to change toolchain - no help. Booting from network or from nand - no difference.

 

See the attachments for more info...

Original Attachment has been moved to: iwscan.cpp.zip

Labels (1)
0 Kudos
1 Reply

424 Views
jounimo
Contributor I

solved:

echo 1 > /sys/devices/platorm/FlexCAN.0/wakeup

0 Kudos