<?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: FlexCAN Rx mailbox locking not working</title>
    <link>https://community.nxp.com/t5/MPC5xxx/FlexCAN-Rx-mailbox-locking-not-working/m-p/1531558#M22112</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;an MB is unlocked when the CPU reads the Free Running Timer Register (TIMER) or the C/S word of another MB. So if debugger displays registers or MB area it can cause this too.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 10:09:11 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2022-10-03T10:09:11Z</dc:date>
    <item>
      <title>FlexCAN Rx mailbox locking not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/FlexCAN-Rx-mailbox-locking-not-working/m-p/1529538#M22087</link>
      <description>&lt;P&gt;I have a setup with an MPC5744P and am following the reference manual instruction for FlexCAN reception.&lt;/P&gt;&lt;P&gt;The problem is that after reading the Control/Status word of a certain MB (in an interrupt disabled context, the Can_Isr), the contents of the MB is still constantly updating.&lt;/P&gt;&lt;P&gt;Not sure if it is the debugger (Lauterback( that is causing this of if I am missing some crucial setting in the FlexCAN register.&lt;/P&gt;&lt;P&gt;As a result, every now and then the data passed from the Isr (ID + contents) is inconsistent.&lt;/P&gt;&lt;P&gt;Code extract from the Can_Rx ISR:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; McuE_DisableInterrupts();&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data = canHw-&amp;gt;MB[mbNr].CS.R;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while( data &amp;amp; 0x01000000 ) &amp;nbsp; &amp;nbsp; &amp;nbsp;// Check BUSY bit (of the CODE field)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data = canHw-&amp;gt;MB[mbNr].CS.R; &amp;nbsp;// If set, wait for it to be cleared&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memcpy(dataTmp,(uint8 *)&amp;amp;canHw-&amp;gt;MB[mbNr].DATA.W[0], 8);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 12:41:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/FlexCAN-Rx-mailbox-locking-not-working/m-p/1529538#M22087</guid>
      <dc:creator>ola_gook</dc:creator>
      <dc:date>2022-09-28T12:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Rx mailbox locking not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/FlexCAN-Rx-mailbox-locking-not-working/m-p/1531558#M22112</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;an MB is unlocked when the CPU reads the Free Running Timer Register (TIMER) or the C/S word of another MB. So if debugger displays registers or MB area it can cause this too.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 10:09:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/FlexCAN-Rx-mailbox-locking-not-working/m-p/1531558#M22112</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2022-10-03T10:09:11Z</dc:date>
    </item>
  </channel>
</rss>

