<?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: IMX8QXP flexCAN1问题 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086100#M159235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the issue here is there is only a single clock that feeds all three CAN modules (SC_R_CAN_0), in the SDK when you call -&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; /* Power on Peripherals. */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; if (sc_pm_set_resource_power_mode(ipc, SC_R_CAN_0, SC_PM_PW_MODE_ON) != SC_ERR_NONE)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; PRINTF("Error: Failed to power on FLEXCAN\r\n");&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will enable the clock as well, but if you use SC_R_CAN_1, I don't believe the clock will get enabled, which also explains why when you initialize CAN_0, CAN_1 then works.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fix is calling the above for both SC_R_CAN_0 and SC_R_CAN_1 should work, in order to use any of the CAN modules a call to CAN_0 will be needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2020 06:40:10 GMT</pubDate>
    <dc:creator>jimmychan</dc:creator>
    <dc:date>2020-05-19T06:40:10Z</dc:date>
    <item>
      <title>IMX8QXP flexCAN1问题</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086099#M159234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ，&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;近期我们在调试i.MX 8QXP MEK的M4内核，正在调试FLEXCAN的功能。使用的是SDK_2.7.0_MEK-MIMX8QX\boards\mekmimx8qx\driver_examples\flexcan\interrupt_transfer程序。&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/107327iD9F935BDB5BB8710/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;例程使用的是CAN0，我们将CAN0相关配置改成CAN1后，发现CAN1无法使用，初始化的时候会卡死在初始化函数里，如下图：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/107370iB383787C60EF7068/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;经过各种尝试发现一定要将CAN0先初始化，CAN1才能正常初始化和使用，不知道为何需要这样? 您这边是否能提供一个CAN1的使用例程呢，非常感谢！&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 03:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086099#M159234</guid>
      <dc:creator>zhengjianfei1</dc:creator>
      <dc:date>2020-05-14T03:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8QXP flexCAN1问题</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086100#M159235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the issue here is there is only a single clock that feeds all three CAN modules (SC_R_CAN_0), in the SDK when you call -&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; /* Power on Peripherals. */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; if (sc_pm_set_resource_power_mode(ipc, SC_R_CAN_0, SC_PM_PW_MODE_ON) != SC_ERR_NONE)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; PRINTF("Error: Failed to power on FLEXCAN\r\n");&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will enable the clock as well, but if you use SC_R_CAN_1, I don't believe the clock will get enabled, which also explains why when you initialize CAN_0, CAN_1 then works.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fix is calling the above for both SC_R_CAN_0 and SC_R_CAN_1 should work, in order to use any of the CAN modules a call to CAN_0 will be needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2020 06:40:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086100#M159235</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2020-05-19T06:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8QXP flexCAN1问题</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086101#M159236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-avatarid="26872" data-externalid="" data-online="false" data-presence="null" data-userid="11091" data-username="jimmychan" href="https://community.nxp.com/people/jimmychan"&gt;jimmy&lt;/A&gt;，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thanks for your reply. We have&amp;nbsp;tried&amp;nbsp;to add&amp;nbsp;SC_R_CAN_0&amp;nbsp;Power on code，but it still didn't work. we found we have to&amp;nbsp;initialize CAN0 and send data to CAN0，and then&amp;nbsp;initialize CAN1, the CAN1 could work. But&amp;nbsp; when CAN1 could work，CAN0 couldn't work，it is a very strange problem，seems that CAN0 &amp;amp; CAN1 can not work at the same time.We have no sense about this&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;strange problem，do you have any suggestion?Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2020 07:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086101#M159236</guid>
      <dc:creator>zhengjianfei1</dc:creator>
      <dc:date>2020-05-19T07:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8QXP flexCAN1问题</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086102#M159237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am asking the internal expert for helping this. I will let you know when I get the reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 08:50:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086102#M159237</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2020-05-21T08:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8QXP flexCAN1问题</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086103#M159238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find attached the patches. They have only modifications in documentation/comments, no code changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 07:39:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086103#M159238</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2020-05-26T07:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8QXP flexCAN1问题</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086104#M159239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jimmychan"&gt;jimmychan&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also facing the problem in cm4 in IMX8qxp. The flexCAN1 is not working in M4. I have tried suggestion mentioned in your patch file. In Linux in A35 core both FLEXcan0 , Flexcan1 works perfectly. As our project is safety critical thus we need to implement Flexcan 0, 1 in cM4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have explained in details my problem in this thread :&amp;nbsp;&lt;A href="https://community.nxp.com/message/1347914"&gt;https://community.nxp.com/message/1347914&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 12:06:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1086104#M159239</guid>
      <dc:creator>mosaddek_hossai</dc:creator>
      <dc:date>2020-08-05T12:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8QXP flexCAN1问题</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1158475#M162454</link>
      <description>&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-III lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;The flexcan on 8QX is implemented as below :&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-III lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;Power domain of CAN1/CAN2 is the &lt;STRONG&gt;child domain&lt;/STRONG&gt; of CAN0's&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-III lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;FlexCAN0,CAN1/CAN2 share the clock root, SCFW provides CAN0 clock control list(interface) only to &lt;STRONG&gt;enable or disable&lt;/STRONG&gt; the clock.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-III lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;So &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-III lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;when use CAN1/CAN2 you need to power on CAN0 as well, take CAN1 for exampe :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;    if (sc_pm_set_resource_power_mode(ipc, SC_R_CAN_0, SC_PM_PW_MODE_ON) != SC_ERR_NONE)
    {
        PRINTF("Error: Failed to power on FLEXCAN0\r\n");
    }
        if (sc_pm_set_resource_power_mode(ipc, SC_R_CAN_1, SC_PM_PW_MODE_ON) != SC_ERR_NONE)
    {
        PRINTF("Error: Failed to power on FLEXCAN1\r\n");
    }​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-III lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;Flexcan clock table should all set to &lt;STRONG&gt;CAN0&lt;/STRONG&gt;&amp;nbsp;in &lt;STRONG&gt;fsl_clock.h&lt;/STRONG&gt; as below , as scfw only provides control interface for CAN0, the new package for 8QX will be available soon with the patch.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;#define FLEXCAN_CLOCKS                                     \
    {                                                      \
        kCLOCK_DMA_Can0, kCLOCK_DMA_Can0, kCLOCK_DMA_Can0, \
    }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please have a try.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 08:10:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8QXP-flexCAN1%E9%97%AE%E9%A2%98/m-p/1158475#M162454</guid>
      <dc:creator>Zodiac</dc:creator>
      <dc:date>2020-09-24T08:10:17Z</dc:date>
    </item>
  </channel>
</rss>

