<?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>MPC5xxxのトピックRe: Incomplete frame trigger the error active event?</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451350#M1422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm afraid that I don't agree "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;But if you do not have 100% bus load, there should be sufficiently large spaces to connect the node.&lt;/SPAN&gt;" after I read Bosch CAN standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11 consecutive recessive bits (Bus Idle) must appear because ACK Delimiter is 1 recessive bit next to the delimiter is End of frame, it consists with 7 recessive bits, then &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;interframe space last for 3 recessive bits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I think this is the purpose why MCU synchronizes itself to the data transfer on the CAN bus by waiting for the occurrence of a sequence of 11 consecutive recessive bits(Bus Idle) before it can take part in bus activities and starts the message transfer.&lt;/SPAN&gt;&lt;SPAN&gt; After synchronize event, the first frame CAN controller can receive must be a complete one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;So we should initialize transceiver first. &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;But aslo thanks so much for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2015 09:54:32 GMT</pubDate>
    <dc:creator>卓儒陈</dc:creator>
    <dc:date>2015-11-05T09:54:32Z</dc:date>
    <item>
      <title>Incomplete frame trigger the error active event?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451345#M1417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;We found a problem that when we initialize SBC to change the transceiver mode to active mode, CAN bus is disturbed and error frame on bus may occurs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;&lt;/SPAN&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;First our MCU initialize our CAN controller inside MPC5604, then we initialize CAN transceiver in SBC(UJA1164) to let the transceiver mode change from Offline mode to Actice mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;One of the difference between Offline mode and Active mode is CAN Line in the transceiver is floating or real connecting to CAN bus.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;So, when we change the transceiver mode to Active mode, CAN Line of transceiver connect to the CAN bus and the transceiver is able to receive signal on bus and convert the signal&lt;BR /&gt;as CAN_Rx(TTL) to MCU. At this time, MCU may receive an &lt;SPAN style="text-decoration: underline;"&gt;incomplete frame &lt;/SPAN&gt;when bus load is high. So this situation trigger Error Active&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt; event in MCU, which let MCU send a stuffing&lt;BR /&gt;error frame purposely to inform other nodes on bus that there is some mistake on bus.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;So, am I right if MCU receive an incomplete frame will trigger the error active event?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;Waiting for your reply, thanks so much!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 03:33:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451345#M1417</guid>
      <dc:creator>卓儒陈</dc:creator>
      <dc:date>2015-11-03T03:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Incomplete frame trigger the error active event?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451346#M1418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you are right. The CAN protocol automatically handles protocol errors in hardware - this is what makes CAN robust. If a CAN node receives a message with an error it can destroy the message and cause the transmitter to resend. The CAN node destroys the message by sending an error frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether the error flag will be passive or active depends on the node status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 13:35:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451346#M1418</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2015-11-03T13:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Incomplete frame trigger the error active event?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451347#M1419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also wonder how to avoid this error frame, because our ECU may start up after other ECUs have already started to send frames on bus. And does this situation cause some risks so that we must avoid it or just it affect nothing we could ignore it?&lt;/P&gt;&lt;P&gt;I suggest to initialize SBC first, then initialize the CAN controller in MCU, but our colleague said that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN lang="EN-US" style="color: #1f497d; font-size: 11pt;"&gt;the CAN driver initializes the CAN controller and waits until it is initialized.&lt;BR /&gt;But the CAN controller cannot be initialized until there is a recessive level on the CAN Rx line. If you have low bus load it might be possible that the time between the messages is enough to initialize the CAN controller. But with high bus load there is not enough (idle) time on the CAN Rx line. This means the CAN&lt;BR /&gt;driver waits forever and this will cause a watchdog reset.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think recessive level must appear on bus because the stuffing rule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 00:06:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451347#M1419</guid>
      <dc:creator>卓儒陈</dc:creator>
      <dc:date>2015-11-04T00:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Incomplete frame trigger the error active event?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451348#M1420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your suggestion about SBC initialization and CAN controller in MCU initialization is correct. But your colleague has also true. You need at least 11 consecutive recessive bits space. Look for example to the MPC5604B reference manual (rev. 8). On page 464 is written:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Once out of Freeze Mode, FlexCAN tries to resynchronize to the CAN bus by waiting for 11 consecutive &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;recessive bits.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://cache.freescale.com/files/32bit/doc/ref_manual/MPC5604BCRM.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1" rel="nofollow"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/MPC5604BCRM.pdf?fsrch=1&amp;amp;sr=1&amp;amp;pageNum=1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In CAN specification is written that interframe space last for 3 recessive bits, which is the minimal time. It could be longer in some cases (error passive node). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you do not have 100% bus load, there should be sufficiently large spaces to connect the node.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Staffing rule is irrelevant in this case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 07:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451348#M1420</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2015-11-04T07:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Incomplete frame trigger the error active event?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451349#M1421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The information is very helpful to me. Thanks so much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 09:51:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451349#M1421</guid>
      <dc:creator>卓儒陈</dc:creator>
      <dc:date>2015-11-04T09:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Incomplete frame trigger the error active event?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451350#M1422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm afraid that I don't agree "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;But if you do not have 100% bus load, there should be sufficiently large spaces to connect the node.&lt;/SPAN&gt;" after I read Bosch CAN standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11 consecutive recessive bits (Bus Idle) must appear because ACK Delimiter is 1 recessive bit next to the delimiter is End of frame, it consists with 7 recessive bits, then &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;interframe space last for 3 recessive bits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I think this is the purpose why MCU synchronizes itself to the data transfer on the CAN bus by waiting for the occurrence of a sequence of 11 consecutive recessive bits(Bus Idle) before it can take part in bus activities and starts the message transfer.&lt;/SPAN&gt;&lt;SPAN&gt; After synchronize event, the first frame CAN controller can receive must be a complete one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;So we should initialize transceiver first. &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;But aslo thanks so much for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 09:54:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451350#M1422</guid>
      <dc:creator>卓儒陈</dc:creator>
      <dc:date>2015-11-05T09:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Incomplete frame trigger the error active event?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451351#M1423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Also remind that 11 consecutive recessive bits will never appears in data field because of stuffing rules in order to ensure if receive &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;11 consecutive recessive bits&lt;/SPAN&gt; it means bus is idle.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 09:57:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451351#M1423</guid>
      <dc:creator>卓儒陈</dc:creator>
      <dc:date>2015-11-05T09:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Incomplete frame trigger the error active event?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451352#M1424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are talking about the same. You are correct that 11 consecutive recessive bits never appears in data field because of stuffing. But I thought that you have to have time of 11 consecutive recessive bits between frames to connect new node. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not have 100% bus load then there are spaces between frames which last long enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 06:32:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Incomplete-frame-trigger-the-error-active-event/m-p/451352#M1424</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2015-11-06T06:32:09Z</dc:date>
    </item>
  </channel>
</rss>

