<?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: How does one set FlexCAN in 2.0B mode? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-does-one-set-FlexCAN-in-2-0B-mode/m-p/973817#M144943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that's what I'm going to need to do as nothing else seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jul 2019 15:21:28 GMT</pubDate>
    <dc:creator>scottmitchell</dc:creator>
    <dc:date>2019-07-01T15:21:28Z</dc:date>
    <item>
      <title>How does one set FlexCAN in 2.0B mode?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-does-one-set-FlexCAN-in-2-0B-mode/m-p/973813#M144939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’ve come across a problem with the FlexCAN ports on the i.MX8X. In Linux, we bring up the CAN ports thusly;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ip link set can0 type can bitrate 1000000 dbitrate 1000000 fd on&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ip link set can0 up&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;…even though we really want the port to operate in CAN 2.0B (non FD) mode. Examining the link with;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ip -details link show can0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...yields;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2: can0: &amp;lt;NOARP,ECHO&amp;gt; mtu 72 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; link/can&amp;nbsp; promiscuity 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; can &amp;lt;FD&amp;gt; state STOPPED (berr-counter tx 0 rx 0) restart-ms 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bitrate 1000000 sample-point 0.750&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tq 25 prop-seg 14 phase-seg1 15 phase-seg2 10 sjw 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flexcan: tseg1 2..64 tseg2 1..32 sjw 1..32 brp 1..1024 brp-inc 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbitrate 1000000 dsample-point 0.750&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtq 50 dprop-seg 7 dphase-seg1 7 dphase-seg2 5 dsjw 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flexcan: dtseg1 1..39 dtseg2 1..8 dsjw 1..8 dbrp 1..1024 dbrp-inc 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clock 40000000numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to confirm that the port is in fact in CAN FD mode which we don’t want. But I am not able to set it with CAN FD turned off (&lt;EM&gt;fd off&lt;/EM&gt;). If I do, I get;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RTNETLINK answers: Operation not supported&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In fact I can listen in on non-FD traffic on that port, but as soon as I attempt to transmit, it brings down the bus and the FlexCAN will eventually go bus off. This makes sense since the other devices on the bus are not FD capable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get the port operating in non-FD (2.0B) mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 20:13:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-does-one-set-FlexCAN-in-2-0B-mode/m-p/973813#M144939</guid>
      <dc:creator>scottmitchell</dc:creator>
      <dc:date>2019-06-26T20:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: How does one set FlexCAN in 2.0B mode?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-does-one-set-FlexCAN-in-2-0B-mode/m-p/973814#M144940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems you are right, there is no way to get the port operating in non-FD (2.0B) mode.&lt;/P&gt;&lt;P&gt;One can try workarounds described in below paper&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.can-cia.org/fileadmin/resources/documents/proceedings/2013_monroe.pdf" title="https://www.can-cia.org/fileadmin/resources/documents/proceedings/2013_monroe.pdf"&gt;https://www.can-cia.org/fileadmin/resources/documents/proceedings/2013_monroe.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2019 06:46:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-does-one-set-FlexCAN-in-2-0B-mode/m-p/973814#M144940</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-07-01T06:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: How does one set FlexCAN in 2.0B mode?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-does-one-set-FlexCAN-in-2-0B-mode/m-p/973815#M144941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the response and the reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, I am trying to use the FlexCAN with only CAN 2.0B nodes, which it seems like it should be able to do. From what I've read of the FlexCAN controller, it is capable of operating in either mode but from the Linux side, I'm not able to configure it for only 2.0B mode as that mode is not supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I've been able to gather from Google, setting both the arbitration and data phase bitrates the same should accomplish this, but in my case it does not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2019 13:02:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-does-one-set-FlexCAN-in-2-0B-mode/m-p/973815#M144941</guid>
      <dc:creator>scottmitchell</dc:creator>
      <dc:date>2019-07-01T13:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does one set FlexCAN in 2.0B mode?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-does-one-set-FlexCAN-in-2-0B-mode/m-p/973817#M144943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that's what I'm going to need to do as nothing else seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2019 15:21:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-does-one-set-FlexCAN-in-2-0B-mode/m-p/973817#M144943</guid>
      <dc:creator>scottmitchell</dc:creator>
      <dc:date>2019-07-01T15:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: How does one set FlexCAN in 2.0B mode?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-does-one-set-FlexCAN-in-2-0B-mode/m-p/973818#M144944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have modified the device tree file to add the &lt;EM&gt;disable-fd-mode&lt;/EM&gt; option to the CAN port as Igor suggested, and this has solved the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 18:50:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-does-one-set-FlexCAN-in-2-0B-mode/m-p/973818#M144944</guid>
      <dc:creator>scottmitchell</dc:creator>
      <dc:date>2019-07-03T18:50:51Z</dc:date>
    </item>
  </channel>
</rss>

