<?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>i.MX ProcessorsのトピックCan bus function on i.MX6q with Android 5.0.2</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Can-bus-function-on-i-MX6q-with-Android-5-0-2/m-p/591886#M89189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have modify kernel to enable flexcan on SabreSD board and I can find can0 when system boot up.&lt;/P&gt;&lt;P&gt;But when I try to bring up can0 with "&lt;STRONG&gt;ip link set can0 up type can bitrate 125000"&lt;/STRONG&gt; I find two IRQ error from kernel message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flexcan 2090000.can can0: writing ctrl=0x0e312005&lt;/P&gt;&lt;P&gt;flexcan 2090000.can can0: flexcan_set_bittiming: mcr=0x5980000f ctrl=0x0e312005&lt;/P&gt;&lt;P&gt;flexcan 2090000.can can0: flexcan_chip_start: writing mcr=0x7de2020d&lt;/P&gt;&lt;P&gt;flexcan 2090000.can can0: flexcan_chip_start: writing ctrl=0x0e31ac55&lt;/P&gt;&lt;P&gt;flexcan 2090000.can can0: flexcan_chip_start: reading mcr=0x6de2020d ctrl=0x0e31ac55&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;flexcan 2090000.can can0: Error Warning IRQ&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;flexcan 2090000.can can0: Error Passive IRQ&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;flexcan 2090000.can can0: bus-off&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to send packet from can0 by cansend, I can't measure any change from TX pin.&lt;/P&gt;&lt;P&gt;Does anyone know the problem of it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2016 09:30:49 GMT</pubDate>
    <dc:creator>jim2_chen</dc:creator>
    <dc:date>2016-06-30T09:30:49Z</dc:date>
    <item>
      <title>Can bus function on i.MX6q with Android 5.0.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-bus-function-on-i-MX6q-with-Android-5-0-2/m-p/591886#M89189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have modify kernel to enable flexcan on SabreSD board and I can find can0 when system boot up.&lt;/P&gt;&lt;P&gt;But when I try to bring up can0 with "&lt;STRONG&gt;ip link set can0 up type can bitrate 125000"&lt;/STRONG&gt; I find two IRQ error from kernel message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flexcan 2090000.can can0: writing ctrl=0x0e312005&lt;/P&gt;&lt;P&gt;flexcan 2090000.can can0: flexcan_set_bittiming: mcr=0x5980000f ctrl=0x0e312005&lt;/P&gt;&lt;P&gt;flexcan 2090000.can can0: flexcan_chip_start: writing mcr=0x7de2020d&lt;/P&gt;&lt;P&gt;flexcan 2090000.can can0: flexcan_chip_start: writing ctrl=0x0e31ac55&lt;/P&gt;&lt;P&gt;flexcan 2090000.can can0: flexcan_chip_start: reading mcr=0x6de2020d ctrl=0x0e31ac55&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;flexcan 2090000.can can0: Error Warning IRQ&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;flexcan 2090000.can can0: Error Passive IRQ&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;flexcan 2090000.can can0: bus-off&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to send packet from can0 by cansend, I can't measure any change from TX pin.&lt;/P&gt;&lt;P&gt;Does anyone know the problem of it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 09:30:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-bus-function-on-i-MX6q-with-Android-5-0-2/m-p/591886#M89189</guid>
      <dc:creator>jim2_chen</dc:creator>
      <dc:date>2016-06-30T09:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can bus function on i.MX6q with Android 5.0.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-bus-function-on-i-MX6q-with-Android-5-0-2/m-p/591887#M89190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by default SabreSD BSP does not support flexcan, please follow&lt;/P&gt;&lt;P&gt;guidelines on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-94887"&gt;How to enable CAN bus on i.MX6Q SabreSD&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/307066"&gt;How to use FlexCAN in Android OS&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jul 2016 14:31:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-bus-function-on-i-MX6q-with-Android-5-0-2/m-p/591887#M89190</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-07-02T14:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can bus function on i.MX6q with Android 5.0.2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-bus-function-on-i-MX6q-with-Android-5-0-2/m-p/591888#M89191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your reply. But unfortunately, these information are not useful for my condition. These environments are not the same as Android 5.0.2 released by NXP. My problem is the bus will become bus-off when I bring it up. I have trace flexcan.c in drivers/net/can/ and I guess the bus-off is come from flexcan_poll_state() and in do_state() it will call can_bus_off if new_state is CAN_STATE_BUS_OFF. I can't find any discuss about this issue on community. How can I prevent the can bus become bus-off?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 09:27:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-bus-function-on-i-MX6q-with-Android-5-0-2/m-p/591888#M89191</guid>
      <dc:creator>jim2_chen</dc:creator>
      <dc:date>2016-07-04T09:27:39Z</dc:date>
    </item>
  </channel>
</rss>

