Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

RS-485 half-duplex communication

Kernel Networking Configurations

...

devmem2 is used to configure the relevant registers.

image inter-channel CAN.pngImage Modified

Enable Global test mode (GMDC[1:0]=0x2) in the Global Control Register:

...

root@smarc-rzg2l:~# cansend can1 18ff6228##1aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55aa55
  can1  18FF6228  [32]  AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55
  can0  18FF6228  [32]  AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55 AA 55

External loopback test

image external loopback test.pngImage Modified

Note: obviously this test works only if the CAN transceiver is fitted. Many EVKs shipped recently do not have the transceiver populated. First check that IC15 is soldered on the board.

...