<?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のトピックMSCan &amp; Bus-off Recovery</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCan-Bus-off-Recovery/m-p/209429#M8622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know what do you do in the error interrupt when the node is in Bus-off state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I catch the interrupt but I really don't know what to do. I initialize the mscan as automatic recovery in bus-off, so I suppose the node waits for the 128 occurrences of 11 consecutive recessive bits on the CAN bus and then the node can transmit again... but do you initialize again the node? do you do anything after bus-off recovery?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ruben&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2008 20:40:20 GMT</pubDate>
    <dc:creator>RubenCG</dc:creator>
    <dc:date>2008-12-11T20:40:20Z</dc:date>
    <item>
      <title>MSCan &amp; Bus-off Recovery</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCan-Bus-off-Recovery/m-p/209429#M8622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know what do you do in the error interrupt when the node is in Bus-off state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I catch the interrupt but I really don't know what to do. I initialize the mscan as automatic recovery in bus-off, so I suppose the node waits for the 128 occurrences of 11 consecutive recessive bits on the CAN bus and then the node can transmit again... but do you initialize again the node? do you do anything after bus-off recovery?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ruben&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 20:40:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCan-Bus-off-Recovery/m-p/209429#M8622</guid>
      <dc:creator>RubenCG</dc:creator>
      <dc:date>2008-12-11T20:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: MSCan &amp; Bus-off Recovery</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCan-Bus-off-Recovery/m-p/209430#M8623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben and Everyone in the forum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I too have the same exactly doubt regarding the CAN bus-off recovery ISR. I am using the MC9S12DG128.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I did not set the &lt;SPAN&gt;BORM&lt;/SPAN&gt; [Bus-Off Recovery Mode] bit of &lt;SPAN&gt;CAN0CTL1&lt;/SPAN&gt; register to 1 anywhere in my code, that means, I selected the bus-off recovery mode as Automatic recovery. So, now when I create Bus-off condition by shorting CAN_H &amp;amp; CAN_L pins, the interrupt occurs. And as&amp;nbsp; Mr.Ruben asked the question, do I need to initialize the CAN Controller again inside the Bus-off ISR..???Because, as I selected the Bus-off Recovery Mode as Automatic, according to msCAN protocol, the msCAN will become Error Active again after counting 128 occurrences of 11 consecutive recessive bits&amp;nbsp; on the CAN bus..so, it will not create any problem...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I discuss this issue with my friend, he told me that we need to Initialize the CAN controller in the CAN Busoff ISR to avoid the un-expected CAN Message transmission from the node or to clear or flush all the Tx&amp;nbsp; buffer registers of the msCAN .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to confirm it ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, Ruben and everyone if you guys have cleared with this issue, kindly guide me plz...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 15:55:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCan-Bus-off-Recovery/m-p/209430#M8623</guid>
      <dc:creator>nandu</dc:creator>
      <dc:date>2009-08-27T15:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: MSCan &amp; Bus-off Recovery</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCan-Bus-off-Recovery/m-p/209431#M8624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Automatic busoff recovery works&amp;nbsp;very well, reinitialization isn't necessary. But aborting scheduled Tx messages may make sense. In case some command was send and not delivered due busoff, it is not known how long busoff condition will take place. Probably it would be wrong to automatically send/resend undelivered command when busoff goes away, possibly after many minutes, hours etc... But it is application dependent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2009 15:45:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCan-Bus-off-Recovery/m-p/209431#M8624</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-08-30T15:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: MSCan &amp; Bus-off Recovery</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCan-Bus-off-Recovery/m-p/209432#M8625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kef,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks alof for the confirmation. I am cleared with this issue now &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 19:58:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCan-Bus-off-Recovery/m-p/209432#M8625</guid>
      <dc:creator>nandu</dc:creator>
      <dc:date>2009-08-31T19:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: MSCan &amp; Bus-off Recovery</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCan-Bus-off-Recovery/m-p/209433#M8626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks Kef for your interest in our "problem", I'll introduce the code to abort the scheduled Tx datain my bus-off ISR. I hope it works!&lt;/DIV&gt;&lt;DIV&gt;Thanks again&lt;/DIV&gt;&lt;DIV&gt;Ruben&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 21:54:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCan-Bus-off-Recovery/m-p/209433#M8626</guid>
      <dc:creator>RubenCG</dc:creator>
      <dc:date>2009-08-31T21:54:17Z</dc:date>
    </item>
  </channel>
</rss>

