<?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>MCX MicrocontrollersのトピックRe: CAN-FD Reception Issues on i.MX RT FlexCAN: Unhandled/Overflow at 500 kbps / 2 Mbps</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/CAN-FD-Reception-Issues-on-i-MX-RT-FlexCAN-Unhandled-Overflow-at/m-p/2187913#M4225</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/253824"&gt;@Harisha&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;Please check the following points.&lt;/P&gt;
&lt;P&gt;1. Increase the number of RX mailboxes.&lt;BR /&gt;To optimize CANFD message reception, consider increasing the number of RX mailboxes. The relationship between payload size and mailbox count can be found in the i.MX RT1170 Reference Manual.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_0-1760668935493.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/361293iD4EF2B8DEFA376B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_0-1760668935493.png" alt="mayliu1_0-1760668935493.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Clarify where CANFD data is received and processed.&lt;BR /&gt;Are you handling CANFD data in a callback function or within a task? It is recommended to keep the callback logic minimal to ensure fast execution and to quickly re-enable reception.&lt;/P&gt;
&lt;P&gt;3. Monitor FlexCAN module error and status flags.&lt;BR /&gt;Are you checking for FlexCAN errors or abnormal conditions? Use FLEXCAN_GetStatusFlags() to retrieve the current status, and FLEXCAN_ClearStatusFlags() to clear any error flags.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Prioritize CAN interrupts.&lt;BR /&gt;Set the CAN interrupt to the highest priority and reduce the priority of other module interrupts.&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;Best Regards&lt;BR /&gt;MayLiu&lt;/P&gt;</description>
    <pubDate>Fri, 17 Oct 2025 02:45:49 GMT</pubDate>
    <dc:creator>mayliu1</dc:creator>
    <dc:date>2025-10-17T02:45:49Z</dc:date>
    <item>
      <title>CAN-FD Reception Issues on i.MX RT FlexCAN: Unhandled/Overflow at 500 kbps / 2 Mbps</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/CAN-FD-Reception-Issues-on-i-MX-RT-FlexCAN-Unhandled-Overflow-at/m-p/2187258#M4219</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working with the i.MX RT1170 board FlexCAN FD module. My setup is:&lt;/P&gt;&lt;P&gt;Board: i.MX RT1170&lt;/P&gt;&lt;P&gt;Clock: 24 MHz&lt;/P&gt;&lt;P&gt;Arbitration phase: 500 kbps, sample point ~82.5 %&lt;/P&gt;&lt;P&gt;Data phase: 2 Mbps, sample point ~80 %&lt;/P&gt;&lt;P&gt;RX message buffers: 8&lt;/P&gt;&lt;P&gt;Payload: 64 bytes&lt;/P&gt;&lt;P&gt;Frame interval: 20 ms&lt;/P&gt;&lt;P&gt;Sending frames from: PEAK CAN interface (using same rates in PCAN-View)&lt;/P&gt;&lt;P&gt;Implementation details:&lt;/P&gt;&lt;P&gt;Using non-blocking RX (FLEXCAN_TransferFDReceiveNonBlocking) and immediately rearming RX MB in the callback&lt;/P&gt;&lt;P&gt;Observed results:&lt;/P&gt;&lt;P&gt;Sometimes fewer frames received than expected (e.g., 900–1243 frames for 64B, ~2000 frames for 8B)&lt;/P&gt;&lt;P&gt;Callback status mostly kStatus_FLEXCAN_UnHandled&lt;/P&gt;&lt;P&gt;Occasionally overflow occurs; once overflow happens, I cannot receive even a single frame afterward&lt;/P&gt;&lt;P&gt;What I tried:&lt;/P&gt;&lt;P&gt;Increasing RX MBs from 5 → 8&lt;/P&gt;&lt;P&gt;Removing all printf or heavy operations from callback&lt;/P&gt;&lt;P&gt;Verifying ISR priority (highest for CAN, no other tasks running)&lt;/P&gt;&lt;P&gt;Testing smaller payloads&lt;/P&gt;&lt;P&gt;Reducing data baud rate (2 Mbps → 1 Mbps)&lt;/P&gt;&lt;P&gt;also i checked for more 100ms and 50 ms and 30ms also its working fine.&lt;/P&gt;&lt;P&gt;Despite all this, I still lose frames and see unhandled or overflow statuses.&lt;/P&gt;&lt;P&gt;my target is to receive frames at 15ms cycle time .&lt;/P&gt;&lt;P&gt;Could someone suggest the exact recommended configuration or best practices to reliably receive all frames without losing data?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 07:24:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/CAN-FD-Reception-Issues-on-i-MX-RT-FlexCAN-Unhandled-Overflow-at/m-p/2187258#M4219</guid>
      <dc:creator>Harisha</dc:creator>
      <dc:date>2025-10-16T07:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: CAN-FD Reception Issues on i.MX RT FlexCAN: Unhandled/Overflow at 500 kbps / 2 Mbps</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/CAN-FD-Reception-Issues-on-i-MX-RT-FlexCAN-Unhandled-Overflow-at/m-p/2187913#M4225</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/253824"&gt;@Harisha&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;Please check the following points.&lt;/P&gt;
&lt;P&gt;1. Increase the number of RX mailboxes.&lt;BR /&gt;To optimize CANFD message reception, consider increasing the number of RX mailboxes. The relationship between payload size and mailbox count can be found in the i.MX RT1170 Reference Manual.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_0-1760668935493.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/361293iD4EF2B8DEFA376B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_0-1760668935493.png" alt="mayliu1_0-1760668935493.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Clarify where CANFD data is received and processed.&lt;BR /&gt;Are you handling CANFD data in a callback function or within a task? It is recommended to keep the callback logic minimal to ensure fast execution and to quickly re-enable reception.&lt;/P&gt;
&lt;P&gt;3. Monitor FlexCAN module error and status flags.&lt;BR /&gt;Are you checking for FlexCAN errors or abnormal conditions? Use FLEXCAN_GetStatusFlags() to retrieve the current status, and FLEXCAN_ClearStatusFlags() to clear any error flags.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Prioritize CAN interrupts.&lt;BR /&gt;Set the CAN interrupt to the highest priority and reduce the priority of other module interrupts.&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;Best Regards&lt;BR /&gt;MayLiu&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 02:45:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/CAN-FD-Reception-Issues-on-i-MX-RT-FlexCAN-Unhandled-Overflow-at/m-p/2187913#M4225</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2025-10-17T02:45:49Z</dc:date>
    </item>
  </channel>
</rss>

