<?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中的主题 How do I get CAN Rx interrupts to fire on an MPC5668G when the FIFO is enabled?</title>
    <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629456#M5789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As soon as the FEN bit is set in CANx MCR the Rx Interrupts stop firing.&amp;nbsp;&amp;nbsp; We are using a port of MQX though I don't believe that to be the issue.&amp;nbsp;&amp;nbsp; All the registers look OK.&amp;nbsp;&amp;nbsp; I have reserved the lower 8 MBs (0 - 7) for Rx and moved the Tx MBs up.&amp;nbsp;&amp;nbsp; Tx works fine but no amount of coxing gets it to work.&amp;nbsp; I'm now almost at register level:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CAN_B.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;FRZ&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CAN_B.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;HALT&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: small;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;(CAN_B.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;FRZACK&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; == 0){};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CAN_B.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;FEN&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CAN_B.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;HALT&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2016 15:58:45 GMT</pubDate>
    <dc:creator>ashbc1</dc:creator>
    <dc:date>2016-11-03T15:58:45Z</dc:date>
    <item>
      <title>How do I get CAN Rx interrupts to fire on an MPC5668G when the FIFO is enabled?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629456#M5789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As soon as the FEN bit is set in CANx MCR the Rx Interrupts stop firing.&amp;nbsp;&amp;nbsp; We are using a port of MQX though I don't believe that to be the issue.&amp;nbsp;&amp;nbsp; All the registers look OK.&amp;nbsp;&amp;nbsp; I have reserved the lower 8 MBs (0 - 7) for Rx and moved the Tx MBs up.&amp;nbsp;&amp;nbsp; Tx works fine but no amount of coxing gets it to work.&amp;nbsp; I'm now almost at register level:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CAN_B.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;FRZ&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CAN_B.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;HALT&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: small;"&gt;while&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;(CAN_B.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;FRZACK&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; == 0){};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CAN_B.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;FEN&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CAN_B.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;MCR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;B&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #0000a0; font-size: small;"&gt;HALT&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 15:58:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629456#M5789</guid>
      <dc:creator>ashbc1</dc:creator>
      <dc:date>2016-11-03T15:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get CAN Rx interrupts to fire on an MPC5668G when the FIFO is enabled?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629457#M5790</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;If the FIFO is enabled the memory area from 0x80 to 0xFC (which is normally occupied by MBs 0 to 7)&amp;nbsp; is used by the reception FIFO engine. The 8-entry ID table from FIFO is scanned first and then, if a match is not found within the FIFO table, the other MBs are scanned. When the frame is received, it is temporarily stored in a SMB. If a matching ID is found in the FIFO table or in one of the regular MBs, the contents of the SMB are transferred to the FIFO or to the matched MB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are following rules for message filtering for different FlexCAN module configuration:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;a) When MCR[FEN]=0, no RX FIFO&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MCR[BCC]=0: MB0-MB64 use RXGMASK except MB14 uses RX14MASK and MB15 used RX15MASK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MCR[BCC]=1: MB0-MB64 use RXIMR0-RXIMR64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;b) When MCR[FEN]=1, RX FIFO used&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MCR[BCC]=0: ID0-ID5 use RXGMASK, ID6 uses RX14MASK, ID7 uses RX15MASK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MB8-MB64 use RXGMASK except MB14 uses RX14MASK and MB15 used RX15MASK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MCR[BCC]=1: ID0-ID7 uses RXIMR0-RXIMR7, MB8-MB64 use RXIMR8-RXIMR64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Flags are set in following way when FIFO is enabled. The 8 least significant interrupt flags (BUF7I–BUF0I) is changed to support the FIFO operation. BUF7I, BUF6I and BUF5I indicate operating conditions of the FIFO, while BUF4I to BUF0I are not used. In details&lt;/P&gt;&lt;P&gt;- BUF5I - Buffer MB5 Interrupt or Frames available in FIFO.&lt;/P&gt;&lt;P&gt;- BUF6I - Buffer MB6 Interrupt or FIFO Warning. Four frames have accumulated in the FIFO.&lt;/P&gt;&lt;P&gt;- BUF7I - Buffer MB7 Interrupt orFIFO Overflow. The FIFO is full and subsequent frames arenot accepted until the CPU creates space in the FIFO by reading one or more frames. While theFIFO is full, the frames are only received if they are matched with another MB (MB8-MB63).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 2nd word in the FIFO structure (0x84 ID Standard/Extended) represents the ID of received frame when frame is read (accessing an MB in the 0x80 address) from the RX FIFO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The simple MPC5668G RXFIFO example can be found at&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;A href="http://www.nxp.com/webapp/sps/download/license.jsp?colCode=MPC5668X-FLEXCAN-TX2RXFIFO"&gt;http://www.nxp.com/webapp/sps/download/license.jsp?colCode=MPC5668X-FLEXCAN-TX2RXFIFO&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 10:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629457#M5790</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2016-11-04T10:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get CAN Rx interrupts to fire on an MPC5668G when the FIFO is enabled?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629458#M5791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that. &amp;nbsp; I had previously downloaded that code and I'm afraid it didn't solve the problem as it polls the CAN. &amp;nbsp; Firstly, we do not use message masks. &amp;nbsp; We have no need since the bus is entirely private and we wish to receive everything on it. &amp;nbsp; I can see MBs 0 to 5 filling up as expected. &amp;nbsp; I have enabled interrupt 5 and I can see the request being set in the IFLAG register. &amp;nbsp;The problem is then that the interrupt never fires.&lt;span class="lia-inline-image-display-wrapper" image-alt="MPC CAN Registers.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6129iD7872103DCCB0F1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="MPC CAN Registers.PNG" alt="MPC CAN Registers.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 10:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629458#M5791</guid>
      <dc:creator>ashbc1</dc:creator>
      <dc:date>2016-11-04T10:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get CAN Rx interrupts to fire on an MPC5668G when the FIFO is enabled?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629459#M5792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see another register screen shot. &amp;nbsp;I must say it is starting to feel like a silicon bug. &amp;nbsp;I am not convinced that interrupts actually work when FEN is set&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MPC CAN Registers2.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6172i122375ADFB313E9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="MPC CAN Registers2.PNG" alt="MPC CAN Registers2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 10:52:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629459#M5792</guid>
      <dc:creator>ashbc1</dc:creator>
      <dc:date>2016-11-04T10:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get CAN Rx interrupts to fire on an MPC5668G when the FIFO is enabled?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629460#M5793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I modified the mentioned code to use RX interrupt and it works normally on the EVB.&lt;/P&gt;&lt;P&gt;See attached main.c file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 13:00:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629460#M5793</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2016-11-04T13:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get CAN Rx interrupts to fire on an MPC5668G when the FIFO is enabled?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629461#M5794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again. &amp;nbsp;I now believe it's a bug in the MQX FLEXCAN_Install_isr routine. &amp;nbsp; I will post when we have confirmed this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 15:43:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-get-CAN-Rx-interrupts-to-fire-on-an-MPC5668G-when-the/m-p/629461#M5794</guid>
      <dc:creator>ashbc1</dc:creator>
      <dc:date>2016-11-04T15:43:03Z</dc:date>
    </item>
  </channel>
</rss>

