<?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 RT Crossover MCUsのトピックRe: FlexCAN RX,TX simultaneously</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexCAN-RX-TX-simultaneously/m-p/2011540#M32893</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242161"&gt;@PaoloRB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Question:&amp;nbsp;&lt;/STRONG&gt; I get&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;kStatus_FLEXCAN_ErrorStatus back on the ISR callback function after trying to Tx&amp;nbsp; a frame using&amp;nbsp;FLEXCAN_TransferFDSendNonBlocking. Is there something I should consider, any suggestions about what can cause the problem?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Answer:&amp;nbsp; &lt;/STRONG&gt;If you got&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;kStatus_FLEXCAN_ErrorStatus, I suggest you check CAN frame format, mismatched CAN frame format will lead to this error. Also, Please pay attention to CAN bus error. I suggest you can refer to SDK demo routin.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; do I always need to wait for a MB to finish before trigger any other one? I f I have for example 4 RX channels and 2 TX channels, how can this be handle to Rx and Tx&amp;nbsp;simultaneously?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Answer:&lt;/STRONG&gt;&amp;nbsp;In non-blocking mode&lt;STRONG&gt;,&amp;nbsp;&lt;/STRONG&gt;I don't think you need to wait&amp;nbsp;&lt;SPAN&gt;for a MB to finish before trigger any other one, because you use different MB for Tx and Rx. But you must ensure the MB handle completion through&amp;nbsp;ISR callback function. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For your case, the current MB get error,&amp;nbsp;It should clear CAN Error status flags(FLEXCAN_ClearStatusFlags)&amp;nbsp;in your CAN&amp;nbsp; ISR callback function and make sure the MB is free, notify to your main code for future logic process.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the CAN communication is normal,&amp;nbsp; you can check the current MB Number is free in CAN ISR callback , do your logic and then you can trigger the current MB again.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_0-1733888339149.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315229iDEF3461E971B2BB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_0-1733888339149.png" alt="mayliu1_0-1733888339149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Wish it helps you.&lt;BR /&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;mayliu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2024 03:49:04 GMT</pubDate>
    <dc:creator>mayliu1</dc:creator>
    <dc:date>2024-12-11T03:49:04Z</dc:date>
    <item>
      <title>FlexCAN RX,TX simultaneously</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexCAN-RX-TX-simultaneously/m-p/2010545#M32875</link>
      <description>&lt;P&gt;Hi all, I'm currently using flexCAN on imx6 rt1170 EVKB. I'm trying to have the device working but I have an issue when I trigger a non blocking TX request after a Rx request. I'm using different MB channel for Rx an Tx but I get&amp;nbsp;&lt;SPAN&gt;kStatus_FLEXCAN_ErrorStatus back on the ISR callback function after trying to Tx&amp;nbsp; a frame using&amp;nbsp;FLEXCAN_TransferFDSendNonBlocking. Is there something I should consider, any suggestions about what can cause the problem? do I always need to wait for a MB to finish before trigger any other one? I f I have for example 4 RX channels and 2 TX channels, how can this be handle to Rx and Tx&amp;nbsp;simultaneously?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for any clarification&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 00:29:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexCAN-RX-TX-simultaneously/m-p/2010545#M32875</guid>
      <dc:creator>PaoloRB</dc:creator>
      <dc:date>2024-12-10T00:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN RX,TX simultaneously</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexCAN-RX-TX-simultaneously/m-p/2011540#M32893</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242161"&gt;@PaoloRB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Question:&amp;nbsp;&lt;/STRONG&gt; I get&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;kStatus_FLEXCAN_ErrorStatus back on the ISR callback function after trying to Tx&amp;nbsp; a frame using&amp;nbsp;FLEXCAN_TransferFDSendNonBlocking. Is there something I should consider, any suggestions about what can cause the problem?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Answer:&amp;nbsp; &lt;/STRONG&gt;If you got&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;kStatus_FLEXCAN_ErrorStatus, I suggest you check CAN frame format, mismatched CAN frame format will lead to this error. Also, Please pay attention to CAN bus error. I suggest you can refer to SDK demo routin.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; do I always need to wait for a MB to finish before trigger any other one? I f I have for example 4 RX channels and 2 TX channels, how can this be handle to Rx and Tx&amp;nbsp;simultaneously?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Answer:&lt;/STRONG&gt;&amp;nbsp;In non-blocking mode&lt;STRONG&gt;,&amp;nbsp;&lt;/STRONG&gt;I don't think you need to wait&amp;nbsp;&lt;SPAN&gt;for a MB to finish before trigger any other one, because you use different MB for Tx and Rx. But you must ensure the MB handle completion through&amp;nbsp;ISR callback function. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For your case, the current MB get error,&amp;nbsp;It should clear CAN Error status flags(FLEXCAN_ClearStatusFlags)&amp;nbsp;in your CAN&amp;nbsp; ISR callback function and make sure the MB is free, notify to your main code for future logic process.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the CAN communication is normal,&amp;nbsp; you can check the current MB Number is free in CAN ISR callback , do your logic and then you can trigger the current MB again.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_0-1733888339149.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315229iDEF3461E971B2BB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_0-1733888339149.png" alt="mayliu1_0-1733888339149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Wish it helps you.&lt;BR /&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;mayliu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 03:49:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexCAN-RX-TX-simultaneously/m-p/2011540#M32893</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-12-11T03:49:04Z</dc:date>
    </item>
  </channel>
</rss>

