<?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>LPC MicrocontrollersのトピックRe: LPC1778 MCU - CAN Tx error, Bus off state</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1778-MCU-CAN-Tx-error-Bus-off-state/m-p/1989899#M57222</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242967"&gt;@a_k_y&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. “What are causes for&amp;nbsp;increment/decrement of TXERR and RXERR values of GSR?”&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;-&amp;gt;&amp;gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Increment:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Occurs when the transmitting/receiving node detects a dominant bit while expecting a recessive bit during the arbitration field, control field, data field, or CRC field. This indicates a transmission/receiving error.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Decrement:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Decreases by 1 every time the node successfully transmits/receives a message without errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. "How to avoid the CAN Bus-off state?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;-&amp;gt;&amp;gt;&lt;/STRONG&gt;To avoid CAN bus-off, consider multiple aspects. I will provide a few examples for you.&lt;/P&gt;
&lt;P&gt;a. Ensure that the CAN bus is properly terminated with 120Ω resistors at both ends to minimize reflections and signal integrity issues&lt;/P&gt;
&lt;P&gt;b. Use high-quality cables and connectors to reduce noise and interference.&lt;/P&gt;
&lt;P&gt;Keep the CAN bus length within the recommended limits to avoid signal degradation.&lt;/P&gt;
&lt;P&gt;C.&amp;nbsp;Configure the CAN node settings (bit rate, sample point, etc.) correctly to match the network specifications.&lt;/P&gt;
&lt;P&gt;Ensure that all nodes on the bus are synchronized and operating at the same bit rate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. "How to recover from Bus-off state?"&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;-&amp;gt;&amp;gt; &lt;/STRONG&gt;From um: A&lt;SPAN&gt;utomatically recover from the Bus-off state after 128 occurrences of bus-free.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1730964851164.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/309139i225555211CF87B5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1730964851164.png" alt="Alice_Yang_0-1730964851164.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2024 07:35:48 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2024-11-07T07:35:48Z</dc:date>
    <item>
      <title>LPC1778 MCU - CAN Tx error, Bus off state</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1778-MCU-CAN-Tx-error-Bus-off-state/m-p/1988490#M57218</link>
      <description>&lt;P&gt;LPC1778 MCU is connected to CAN interface as a CAN node. In that CAN interface, MCU do both transmit and receive the data. In this interface sometimes CAN Bus-off state also happening.&lt;/P&gt;&lt;P&gt;For that, we monitor BS bit, ES bit, TXERR and RXERR values of GSR&amp;nbsp;(Global Status Register) register.&amp;nbsp;Mostly TXERR values are changing frequently. When we BS bit and ES bit of GSR register going to"1", we change RM bit of MOD (Mode register) to "0".&lt;/P&gt;&lt;P&gt;What are causes for&amp;nbsp;increment/decrement of TXERR and RXERR values of GSR?&amp;nbsp;How to avoid the CAN Bus-off state? How to recover from Bus-off state?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 05:53:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1778-MCU-CAN-Tx-error-Bus-off-state/m-p/1988490#M57218</guid>
      <dc:creator>a_k_y</dc:creator>
      <dc:date>2024-11-06T05:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1778 MCU - CAN Tx error, Bus off state</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1778-MCU-CAN-Tx-error-Bus-off-state/m-p/1989899#M57222</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242967"&gt;@a_k_y&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. “What are causes for&amp;nbsp;increment/decrement of TXERR and RXERR values of GSR?”&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;-&amp;gt;&amp;gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Increment:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Occurs when the transmitting/receiving node detects a dominant bit while expecting a recessive bit during the arbitration field, control field, data field, or CRC field. This indicates a transmission/receiving error.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Decrement:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Decreases by 1 every time the node successfully transmits/receives a message without errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. "How to avoid the CAN Bus-off state?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;-&amp;gt;&amp;gt;&lt;/STRONG&gt;To avoid CAN bus-off, consider multiple aspects. I will provide a few examples for you.&lt;/P&gt;
&lt;P&gt;a. Ensure that the CAN bus is properly terminated with 120Ω resistors at both ends to minimize reflections and signal integrity issues&lt;/P&gt;
&lt;P&gt;b. Use high-quality cables and connectors to reduce noise and interference.&lt;/P&gt;
&lt;P&gt;Keep the CAN bus length within the recommended limits to avoid signal degradation.&lt;/P&gt;
&lt;P&gt;C.&amp;nbsp;Configure the CAN node settings (bit rate, sample point, etc.) correctly to match the network specifications.&lt;/P&gt;
&lt;P&gt;Ensure that all nodes on the bus are synchronized and operating at the same bit rate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. "How to recover from Bus-off state?"&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;-&amp;gt;&amp;gt; &lt;/STRONG&gt;From um: A&lt;SPAN&gt;utomatically recover from the Bus-off state after 128 occurrences of bus-free.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1730964851164.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/309139i225555211CF87B5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1730964851164.png" alt="Alice_Yang_0-1730964851164.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 07:35:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1778-MCU-CAN-Tx-error-Bus-off-state/m-p/1989899#M57222</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-11-07T07:35:48Z</dc:date>
    </item>
  </channel>
</rss>

