CAN communiciation with IMX6 Sabre Lite Board

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

CAN communiciation with IMX6 Sabre Lite Board

5,669 Views
renegaertner
Contributor I

Hi all,

i m trying to get an CAN Communication established on my Sabre Lite Board Rev. D

Linux Version 3.0.35

on the Board is an TJA1040 CAN-Transceiver

The communication should go to a CANcaseXL from Vector and send and receive messages via CANoe, the CANcaseXL is installed at my PC

tried to set the can0 up with

root@freescale /$ ip link set can0 up type can bitrate 500000     

flexcan imx6q-flexcan.0: writing ctrl=0x03292005 

if i try to send data something from the Sabre Lite with the command:

cantest can0 123#12345678

nothing happens

on the can0 Interrupt (142) if nothing is done:

142:     0        0      0      0   GIC  can0  


can t see anything in CANoe and also i connected an Oscilloscope and there was nothing to see too.

if i send from CANoe an message ID 123 Data: 01 02 03 04 05 06 07 08

and try to catch it with cantest can0 nothing happens too

only CANoe says Errorframes end send them out like hell.

on the can0 Interrupt (142)

142:     352602          0          0          0       GIC can0  

the interrupt is counting up..

here's my Configuration:


on LTIB generated

[*] Networking support --->

     <*> CAN bus subsystem support --->

        <*>   Raw CAN Protocol (raw access with CAN-ID filtering)         
<*>   Broadcast Manager CAN Protocol (with content filtering)     
        CAN Device Drivers  ---> 
<*> Virtual Local CAN Interface (vcan)                            
              <*> Serial / USB serial CAN Adaptors (slcan)                      
  <*> Platform CAN drivers with Netlink support                     
[*]   CAN bit-timing calculation                                  
< >   Microchip MCP251x SPI CAN controllers                       
<*> Support for Freescale FLEXCAN based chips                     
  <*> Philips/NXP SJA1000 devices  --->                             
  <*> Bosch C_CAN devices  --->                                     
      CAN USB interfaces  --->                                      
  <M> Softing Gmbh CAN generic support                              
      [*] CAN devices debugging messages 

root@freescale /$ ip -details -statistic link show can0                        

2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN qlen 10

    link/can

    can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0               

    bitrate 500000 sample-point 0.866                                          

    tq 133 prop-seg 6 phase-seg1 6 phase-seg2 2 sjw 1                          

    flexcan: tseg1 4..16 tseg2 2..8 sjw 1..4 brp 1..256 brp-inc 1              

    clock 30000000

    re-started bus-errors arbit-lost error-warn error-pass bus-off             

    0 0          0          0          0          0                   

    RX: bytes packets  errors  dropped overrun mcast                          

    0 0        0       0 0       0                              

    TX: bytes packets  errors  dropped carrier collsns                        

    0          0        0 0       0       0

root@freescale /$ dmesg | grep -i flexcan                                      

flexcan netdevice driver

flexcan imx6q-flexcan.0: device registered (reg_base=c09a8000, irq=142)        

flexcan imx6q-flexcan.0: writing ctrl=0x03292005                               

flexcan imx6q-flexcan.0: flexcan_set_bittiming: mcr=0x5980000f ctrl=0x03292005 

flexcan imx6q-flexcan.0: flexcan_chip_start: writing mcr=0x7de0020f            

flexcan imx6q-flexcan.0: flexcan_chip_start: writing ctrl=0x0329ec55           

flexcan imx6q-flexcan.0: flexcan_chip_start: reading mcr=0x6de0020f ctrl=0x03295

root@freescale /$ ifconfig                                                     

can0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-0

          UP RUNNING NOARP  MTU:16 Metric:1                                   

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                   

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                 

          collisions:0 txqueuelen:10                                           

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                               

          Interrupt:142   



Can anyone help me to get this CAN running? Would be really have for every hint!


Greetings

René Gärtner


Labels (2)
0 Kudos
Reply
2 Replies

886 Views
renegaertner
Contributor I

oh really noone who can help me???

0 Kudos
Reply

886 Views
RandyKrakora
NXP Employee
NXP Employee

It may be too late, but does this help?

https://community.freescale.com/message/302837#302837

0 Kudos
Reply