<?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>S12 / MagniV Microcontrollers中的主题 CAN Busoff Recovery problems</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-Busoff-Recovery-problems/m-p/605700#M13115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Iam now use S12ZVC ,theproblem is when Busoff happened &amp;nbsp;the MSCAN could generate a CANerror interrupt .when busoff selfrecovery &amp;nbsp;MSCAN will generate an&amp;nbsp;&lt;SPAN&gt; CANerror interrupt then. &amp;nbsp;The MCU will enter a cycle :busoff happened 、recovery、busoff happened 、recovery&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you help me, please&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339149"&gt;wd1111111.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2016 11:01:26 GMT</pubDate>
    <dc:creator>xiaohui200808</dc:creator>
    <dc:date>2016-11-18T11:01:26Z</dc:date>
    <item>
      <title>CAN Busoff Recovery problems</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-Busoff-Recovery-problems/m-p/605700#M13115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Iam now use S12ZVC ,theproblem is when Busoff happened &amp;nbsp;the MSCAN could generate a CANerror interrupt .when busoff selfrecovery &amp;nbsp;MSCAN will generate an&amp;nbsp;&lt;SPAN&gt; CANerror interrupt then. &amp;nbsp;The MCU will enter a cycle :busoff happened 、recovery、busoff happened 、recovery&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you help me, please&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339149"&gt;wd1111111.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 11:01:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-Busoff-Recovery-problems/m-p/605700#M13115</guid>
      <dc:creator>xiaohui200808</dc:creator>
      <dc:date>2016-11-18T11:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Busoff Recovery problems</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-Busoff-Recovery-problems/m-p/605701#M13116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi xiaohui,&lt;/P&gt;&lt;P&gt;Your code contains CAN0CTL1_BORM=0; command. That means that only way how the MSCAN module may leave the bus-off state is when the module detects 128 occurrences of 11 consecutive recessive bits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to use CAN bus-off recovery upon user request (CAN0MISC_BOHOLD&amp;nbsp; = 0x01;), you have to enable that feature by setting BORM bit in a CANCTL1 register.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to your &lt;A _jive_internal="true" href="https://community.nxp.com/thread/439161"&gt;second thread&lt;/A&gt;, you want to use stop mode. I would like to recommend switch MSCAN module into sleep mode prior entering to MCU stop mode. This will prevent against generating error frames on the CAN bus due to unexpected stop mode.&lt;/P&gt;&lt;P&gt;Please use commands below prior entering into stop mode.&lt;/P&gt;&lt;P&gt;CAN0CTL0_SLPRQ = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //sleep mode request&lt;/P&gt;&lt;P&gt;while(CAN0CTL1_SLPAK == 0); //wait for acknowledge of sleep mode&lt;/P&gt;&lt;P&gt;This will manage that MCU will finish all scheduled frames in TX buffers and waits until receiving frame ends (it wait for bus idle).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Nov 2016 20:38:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-Busoff-Recovery-problems/m-p/605701#M13116</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-11-19T20:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Busoff Recovery problems</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-Busoff-Recovery-problems/m-p/605702#M13117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I tried my code again .if I set &amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;CAN0CTL1_BORM=0; the MSCAN l&lt;SPAN&gt;eave the bus-off state is when the module detects 128 occurrences of 11 consecutive recessive bits.Then it will enter busoff again &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;If I&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;set &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;CAN0CTL1_BORM=1;the MSCAN will &amp;nbsp;l&lt;SPAN&gt;eave the bus-off state is when&lt;SPAN style="background-color: #ffffff;"&gt;(CAN0MISC_BOHOLD&amp;nbsp; = 0x01;）initialize MSCAN.&amp;nbsp;and&lt;/SPAN&gt;&amp;nbsp;the module detects 128 occurrences of 11 consecutive recessive bits. &amp;nbsp;But it will enter Busoff again .Leave the Busoff &amp;nbsp;enter the Busoff &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 09:50:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-Busoff-Recovery-problems/m-p/605702#M13117</guid>
      <dc:creator>xiaohui200808</dc:creator>
      <dc:date>2016-11-21T09:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Busoff Recovery problems</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-Busoff-Recovery-problems/m-p/605703#M13118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi X&lt;SPAN class=""&gt;iaohui&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;The bus-off state is a situation where TX/RX error counter reaches more than 255 value.&lt;/P&gt;&lt;P&gt;Every CAN bus error adds some points to error counter – typically 8 points per TX error, 1 point per RX error.&lt;/P&gt;&lt;P&gt;So, when the MCU recovery from the bus-off state, but the source of error is still there, it will just end in the bus-off state again.&lt;/P&gt;&lt;P&gt;What is a source of CAN bus error in your case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:25:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-Busoff-Recovery-problems/m-p/605703#M13118</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-11-21T16:25:56Z</dc:date>
    </item>
  </channel>
</rss>

