<?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: IMXRT1171 FlaxCAN Error Handling</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1171-FlaxCAN-Error-Handling/m-p/2000736#M32687</link>
    <description>&lt;P&gt;To manage TX-related errors and the TXERRCNT issue on your custom i.MXRT1171 board, you can enter Freeze mode to reset the TXERRCNT. If the TXERRCNT remains high, a soft reset can clear it. Implementing error handling code to notify users and manage retransmissions can also help restore normal operation. Here's a brief example:&amp;nbsp;&lt;A href="https://www.wellstar-mychart.com" target="_self"&gt;Child Proxy Form&lt;/A&gt;&lt;BR /&gt;void CAN_ErrorHandler(void)&lt;BR /&gt;{&lt;BR /&gt;FLEXCAN_EnterFreezeMode(CAN_BASE);&lt;BR /&gt;FLEXCAN_ResetTransmitErrorCounter(CAN_BASE);&lt;BR /&gt;FLEXCAN_ExitFreezeMode(CAN_BASE);&lt;BR /&gt;NotifyUser();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Carol Grey&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2024 05:57:19 GMT</pubDate>
    <dc:creator>carolgrey98</dc:creator>
    <dc:date>2024-11-25T05:57:19Z</dc:date>
    <item>
      <title>IMXRT1171 FlaxCAN Error Handling</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1171-FlaxCAN-Error-Handling/m-p/2000690#M32686</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am currently working on a company project using a custom board based on the i.MXRT1171. Additionally, I have an EVB1176 B version kit available for reference.&lt;/P&gt;&lt;P&gt;During a test scenario where the CAN Bus line after the CAN transceiver experiences a short circuit, TX-related errors occur, leading to an increase in TXERRCNT and triggering the TXWRN interrupt.&lt;/P&gt;&lt;P&gt;I am attempting to notify users about CAN transmission issues and implement a handler to restore normal operation. However, while TXWRN is cleared upon retransmission, TXERRCNT remains persistently high, causing the TXWRN interrupt to repeatedly occur.&lt;/P&gt;&lt;P&gt;From my understanding, TXERRCNT can only be controlled in Freeze mode. In normal operation mode, is a soft reset the only solution to this issue? Alternatively, is there any sample code for handling CAN errors?&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 04:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1171-FlaxCAN-Error-Handling/m-p/2000690#M32686</guid>
      <dc:creator>Seunghyup</dc:creator>
      <dc:date>2024-11-25T04:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1171 FlaxCAN Error Handling</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1171-FlaxCAN-Error-Handling/m-p/2000736#M32687</link>
      <description>&lt;P&gt;To manage TX-related errors and the TXERRCNT issue on your custom i.MXRT1171 board, you can enter Freeze mode to reset the TXERRCNT. If the TXERRCNT remains high, a soft reset can clear it. Implementing error handling code to notify users and manage retransmissions can also help restore normal operation. Here's a brief example:&amp;nbsp;&lt;A href="https://www.wellstar-mychart.com" target="_self"&gt;Child Proxy Form&lt;/A&gt;&lt;BR /&gt;void CAN_ErrorHandler(void)&lt;BR /&gt;{&lt;BR /&gt;FLEXCAN_EnterFreezeMode(CAN_BASE);&lt;BR /&gt;FLEXCAN_ResetTransmitErrorCounter(CAN_BASE);&lt;BR /&gt;FLEXCAN_ExitFreezeMode(CAN_BASE);&lt;BR /&gt;NotifyUser();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Carol Grey&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 05:57:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1171-FlaxCAN-Error-Handling/m-p/2000736#M32687</guid>
      <dc:creator>carolgrey98</dc:creator>
      <dc:date>2024-11-25T05:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1171 FlaxCAN Error Handling</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1171-FlaxCAN-Error-Handling/m-p/2000795#M32690</link>
      <description>Thank you for your suggestion. By using Freeze Mode to reset TXERRCNT and clear TWRNINT during CAN bus recovery after TX output, we successfully restored normal operation. Your guidance was very helpful, and we truly appreciate your support.&lt;BR /&gt;&lt;BR /&gt;However, if the CAN bus (physical bus line) is not reconnected after TX output, TX transmission continues indefinitely.&lt;BR /&gt;&lt;BR /&gt;Could you provide information or guidance on how to stop TX output in such cases? We are considering the following sequence:&lt;BR /&gt;CAN transmission -&amp;gt; Error -&amp;gt; TX halt -&amp;gt; Error interrupt handling and TX-related reset -&amp;gt; Normalization.&lt;BR /&gt;&lt;BR /&gt;To clarify, the physical CAN bus refers to the CAN H/L bus line located after the transceiver. Currently, there is no termination resistor on the board itself; the termination resistor will be added to the external CAN bus line. Our goal is to ensure proper handling of errors and recovery when our board is either properly connected to the actual CAN bus or disconnected. Specifically, we are focused on handling errors during CAN transmission when the bus is not connected and achieving proper recovery.&lt;BR /&gt;&lt;BR /&gt;Once again, thank you for your assistance.</description>
      <pubDate>Mon, 25 Nov 2024 07:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1171-FlaxCAN-Error-Handling/m-p/2000795#M32690</guid>
      <dc:creator>Seunghyup</dc:creator>
      <dc:date>2024-11-25T07:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1171 FlaxCAN Error Handling</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1171-FlaxCAN-Error-Handling/m-p/2004024#M32761</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240126"&gt;@Seunghyup&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&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;MIMXRT1170RM described&amp;nbsp;Transmit Error Counter&amp;nbsp;TXERRCNT&amp;nbsp;&amp;nbsp;is read only except in Freeze mode, where it can be written by the CPU.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMXRT1170RM" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=IMXRT1170RM&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_0-1732848771443.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313230i6B14EA724F92B7D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_0-1732848771443.png" alt="mayliu1_0-1732848771443.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For your other question, I suggest you can refer to Chapter 66.6.2.8&amp;nbsp;Error Counter (ECR) in MIMXRT1170RM.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_1-1732848878410.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313231i746AD39A1A9439C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_1-1732848878410.png" alt="mayliu1_1-1732848878410.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_2-1732848884301.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313232i866660BD2D3F78DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_2-1732848884301.png" alt="mayliu1_2-1732848884301.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;Best Regards&lt;/P&gt;
&lt;P&gt;mayliu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 02:58:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1171-FlaxCAN-Error-Handling/m-p/2004024#M32761</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-11-29T02:58:32Z</dc:date>
    </item>
  </channel>
</rss>

