<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FlexCan Support - Cannot Run candump Command in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/FlexCan-Support-Cannot-Run-candump-Command/m-p/505269#M81994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved: It is not well documented, but the candump utility is used to echo packets received after it is run. It is not used to dump packets that have already been sent. Don't know if this was obvious to others but it wasn't to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 21:42:12 GMT</pubDate>
    <dc:creator>PaulDeMetrotion</dc:creator>
    <dc:date>2016-04-14T21:42:12Z</dc:date>
    <item>
      <title>FlexCan Support - Cannot Run candump Command</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexCan-Support-Cannot-Run-candump-Command/m-p/505268#M81993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have two CAN interfaces on our board and I am looping between them. I have added them to the device tree and enabled the drivers. Everything appears to be working correctly – the drivers are loaded at boot and I can enable both CAN ports. I can send a packet of data and the transmit and receive information looks perfect. Now to the problem – when I run candump to confirm the data is correct, the command just stops and never returns to the prompt. I can use Ctrl-C to terminate it but no data is ever displayed. I am providing my findings below. Appreciate any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the dmesg output. Is the ‘supply xceiver not found’ message a problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;root@imx6qc398:~# dmesg | grep -i can&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.277826] CAN device driver interface&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.280764] 2090000.can &lt;SPAN style="color: red;"&gt;supply xceiver not found&lt;/SPAN&gt;, using dummy regulator&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.286810] flexcan 2090000.can: device registered (reg_base=f0288000, irq=142)&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.292971] 2094000.can &lt;SPAN style="color: red;"&gt;supply xceiver not found&lt;/SPAN&gt;, using dummy regulator&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.298969] flexcan 2094000.can: device registered (reg_base=f0290000, irq=143)&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.720615] can: controller area network core (rev 20120528 abi 9)&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.728738] can: raw protocol (rev 20120528)&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.731713] can: broadcast manager protocol (rev 20120528 t)&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.736102] can: netlink gateway (rev 20130117) max_hops=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sequence of commands that shows proper operation. Note the TX and RX buffers after the send. Looks correct so I believe data is being moved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;root@imx6qc398:~# ip link set can0 up type can bitrate 125000&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;flexcan 2090000.can can0: writing ctrl=0x0e312005&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;root@imx6qc398:~# ip link set can1 up type can bitrate 125000&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;flexcan 2094000.can can1: writing ctrl=0x0e312005&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;root@imx6qc398:~# ifconfig&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;can0 Link encap:UNSPEC&amp;nbsp; HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; UP RUNNING NOARP&amp;nbsp; MTU:16&amp;nbsp; Metric:1&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX packets:2 errors:0 dropped:0 overruns:0 frame:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; TX packets:0 errors:0 dropped:0 overruns:0 carrier:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; collisions:0 txqueuelen:10&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX bytes:8 (8.0 B)&amp;nbsp; TX bytes:0 (0.0 B)&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; Interrupt:142&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;can1 Link encap:UNSPEC&amp;nbsp; HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; UP RUNNING NOARP&amp;nbsp; MTU:16&amp;nbsp; Metric:1&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; TX packets:0 errors:0 dropped:0 overruns:0 carrier:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; collisions:0 txqueuelen:10&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX bytes:0 (0.0 B)&amp;nbsp; TX bytes:0 (0.0 B)&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; Interrupt:143&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;eth0 Link encap:Ethernet&amp;nbsp; HWaddr 00:01:45:05:C0:63&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; UP BROADCAST MULTICAST&amp;nbsp; MTU:1500&amp;nbsp; Metric:1&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; TX packets:0 errors:0 dropped:0 overruns:0 carrier:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; collisions:0 txqueuelen:1000&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX bytes:0 (0.0 B)&amp;nbsp; TX bytes:0 (0.0 B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;lo Link encap:Local Loopback&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; inet addr:127.0.0.1&amp;nbsp; Mask:255.0.0.0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; inet6 addr: ::1/128 Scope:Host&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; UP LOOPBACK RUNNING&amp;nbsp; MTU:65536&amp;nbsp; Metric:1&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX packets:10 errors:0 dropped:0 overruns:0 frame:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; TX packets:10 errors:0 dropped:0 overruns:0 carrier:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; collisions:0 txqueuelen:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX bytes:700 (700.0 B)&amp;nbsp; TX bytes:700 (700.0 B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;root@imx6qc398:~# cansend can0 150#11.22.33.44&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;root@imx6qc398:~# ifconfig&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;can0 Link encap:UNSPEC&amp;nbsp; HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; UP RUNNING NOARP&amp;nbsp; MTU:16&amp;nbsp; Metric:1&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX packets:2 errors:0 dropped:0 overruns:0 frame:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; TX packets:1 errors:0 dropped:0 overruns:0 carrier:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; collisions:0 txqueuelen:10&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX bytes:8 (8.0 B)&amp;nbsp; &lt;STRONG style="color: red;"&gt;TX bytes:4 (4.0 B)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; Interrupt:142&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;can1 Link encap:UNSPEC&amp;nbsp; HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; UP RUNNING NOARP&amp;nbsp; MTU:16&amp;nbsp; Metric:1&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX packets:1 errors:0 dropped:0 overruns:0 frame:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; TX packets:0 errors:0 dropped:0 overruns:0 carrier:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; collisions:0 txqueuelen:10&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; &lt;STRONG style="color: red;"&gt;RX bytes:4 (4.0 B)&lt;/STRONG&gt;&amp;nbsp; TX bytes:0 (0.0 B)&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; Interrupt:143&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;eth0 Link encap:Ethernet&amp;nbsp; HWaddr 00:01:45:05:C0:63&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; UP BROADCAST MULTICAST&amp;nbsp; MTU:1500&amp;nbsp; Metric:1&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; TX packets:0 errors:0 dropped:0 overruns:0 carrier:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; collisions:0 txqueuelen:1000&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX bytes:0 (0.0 B)&amp;nbsp; TX bytes:0 (0.0 B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;lo Link encap:Local Loopback&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; inet addr:127.0.0.1&amp;nbsp; Mask:255.0.0.0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; inet6 addr: ::1/128 Scope:Host&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; UP LOOPBACK RUNNING&amp;nbsp; MTU:65536&amp;nbsp; Metric:1&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX packets:10 errors:0 dropped:0 overruns:0 frame:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; TX packets:10 errors:0 dropped:0 overruns:0 carrier:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; collisions:0 txqueuelen:0&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt; RX bytes:700 (700.0 B)&amp;nbsp; TX bytes:700 (700.0 B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx6qc398:~# candump can1&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN style="color: red;"&gt;^C &lt;/SPAN&gt;ß Control-C used to terminate the command&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;root@imx6qc398:~#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the candump command with different settings, it does reveal that some of the utility is being executed but never returning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;root@imx6qc398:~# candump -l -s 0 can1&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;Enabling Logfile 'candump-2016-04-14_161516.log'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;^C&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;Warning: console output active while logging!&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;root@imx6qc398:~# candump -l -s 2 can1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;Enabling Logfile 'candump-2016-04-14_161536.log'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;^C&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;root@imx6qc398:~#&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;root@imx6qc398:~# candump -l -s 2 can111111111111111111111111111&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;name of CAN device 'can111111111111111111111111111' is too long!&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;root@imx6qc398:~# candump -t e can1&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;candump: unknown timestamp mode 'e' - ignored&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;^C&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;root@imx6qc398:~#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I edit the source code for candump.c to add additional debug code to help pinpoint the issue? I have tried to change the source file I have in my work directory, but it does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 16:44:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexCan-Support-Cannot-Run-candump-Command/m-p/505268#M81993</guid>
      <dc:creator>PaulDeMetrotion</dc:creator>
      <dc:date>2016-04-14T16:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCan Support - Cannot Run candump Command</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FlexCan-Support-Cannot-Run-candump-Command/m-p/505269#M81994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved: It is not well documented, but the candump utility is used to echo packets received after it is run. It is not used to dump packets that have already been sent. Don't know if this was obvious to others but it wasn't to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:42:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FlexCan-Support-Cannot-Run-candump-Command/m-p/505269#M81994</guid>
      <dc:creator>PaulDeMetrotion</dc:creator>
      <dc:date>2016-04-14T21:42:12Z</dc:date>
    </item>
  </channel>
</rss>

