AnsweredAssumed Answered

LS1021A Rev2: CAN communication not working using TWR-IND-IO

Question asked by Shrikant Bobade on Jun 22, 2016
Latest reply on Jan 27, 2017 by Shrikant Bobade

Hi,

 

I am using LS1021A Rev.2: Board along with TWR-ELEV & TWR-IND-IO to check CAN communication.

I have connected two LS1 targets to check CAN communication over CAN n/w. CANH1, GND, CANL1 connected to other similar setup.

 

setup details:

kernel v4.1.8 from http://git.freescale.com/git/cgit.cgi/ppc/sdk/linux.git/log/?h=sdk-v2.0.x

user-land: CAN canutils v4.0.6 libsocketcan v0.0.9

 

 

The TWR-IND-IO module: J13 & J14: jumper settings done w.r.to http://cache.nxp.com/files/microcontrollers/doc/user_guide/TWR-IND-IO_QSG.pdf?fpsp=1&WT_TYPE=Quick%20Reference%20Guides&…

 

to make can0 interface up:

:~# ip link set can0 up type can bitrate 125000

flexcan 2a70000.can can0: writing ctrl=0x4a312005

IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready

 

 

 

CAN dtb nodes:

can@2a70000 {

  compatible = "fsl,ls1021ar2-flexcan";

  reg = <0x00000000 0x00000003 0x0000007e 0x000000d9>;

  interrupts = <0x00000000 0x00000010 0x0000000a>;

  clocks = <0x0000000a 0x00000003 0x70657200 0x00000003>;

  clock-names = "ipg", "per";

  little-endian;

  status = "okay";

  };

  can@2a80000 {

  compatible = "fsl,ls1021ar2-flexcan";

  reg = <0x00000000 0x00000003 0x0000007f 0x000000d9>;

  interrupts = <0x00000000 0x00000010 0x0000000a>;

  clocks = <0x0000000a 0x00000003 0x70657200 0x00000003>;

  clock-names = "ipg", "per";

  little-endian;

  status = "okay";

  };

 

using canutils, I am trying to check the CAN communication: but didn't got the CAN communication working.

e.g.candump can0 & cansend -e can0 1 2 3 4 5 6 7  8 --loop=2

 

Please advice do I need to do any extra change to make the CAN communication working?

Any pointers will be a great help.

 

Thanks

Shrikant

Outcomes