<?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>S32K中的主题 Re: What is the difference between RX FIFO and message box</title>
    <link>https://community.nxp.com/t5/S32K/What-is-the-difference-between-RX-FIFO-and-message-box/m-p/727029#M1787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regard to&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;RX FIFO is overrun and continuous looping of IRQ&amp;nbsp; is because the driver &lt;SPAN&gt;IRQ Handler&amp;nbsp;&lt;/SPAN&gt;will clear the over flow status and on the next frame this will be triggered again if the application callback don't do something in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2018 14:40:37 GMT</pubDate>
    <dc:creator>alexandrunan</dc:creator>
    <dc:date>2018-04-02T14:40:37Z</dc:date>
    <item>
      <title>What is the difference between RX FIFO and message box</title>
      <link>https://community.nxp.com/t5/S32K/What-is-the-difference-between-RX-FIFO-and-message-box/m-p/727026#M1784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;if you want to receive more than 32 messages via CAN and use the FlexCAN driver you can either do this by using a message box and&amp;nbsp;setting an appropriate mask&amp;nbsp;in order to receive more than one message ID with that message box. Or you can use the RX FIFO and set an appropriate ID table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;However, it seems like as soon as a message is received, the interrupt handler of the FlexCAN driver is called and the data from the message box or RX FIFO gets copied to the given buffer variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;After this, the FlexCAN driver is not able to receive another message, unless the&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;FLEXCAN_DRV_RxFifo&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt; or the &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;FLEXCAN_DRV_Receive&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt; function is called again, which if you want to receive adjacent messages has to be done by the callback function of said interrupt handler.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;In this case, what is the difference between the message box and the RX FIFO if the FIFO is not able to receive another message before calling the receive function again?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 21:13:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/What-is-the-difference-between-RX-FIFO-and-message-box/m-p/727026#M1784</guid>
      <dc:creator>christianmächle</dc:creator>
      <dc:date>2018-03-22T21:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between RX FIFO and message box</title>
      <link>https://community.nxp.com/t5/S32K/What-is-the-difference-between-RX-FIFO-and-message-box/m-p/727027#M1785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RxFIFO is 6-message deep and&amp;nbsp;the application&amp;nbsp;can read the received messages sequentially, in the order they were received, by repeatedly reading a Message Buffer structure at the output of the FIFO, which is the Message Buffer with the index 0 (zero).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you install an event callback you can be notified each time a frame was received in the FIFO, or when&amp;nbsp;the number of unread messages within the Rx FIFO is increased to 5 from 4 due to the reception of a new one (Rx FIFO Warning event), or&amp;nbsp;when an incoming message was lost because the Rx FIFO is full (Rx FIFO Overflow event).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When&amp;nbsp;you call&amp;nbsp;FLEXCAN_DRV_RxFifo, RxFIFO interrupts are enabled and if multiple frames match the ID filter table, they will be stored in the internal FIFO structure. The application needs to call&amp;nbsp;&lt;SPAN&gt;FLEXCAN_DRV_RxFifo for each frame stored in the FIFO in order to pop the data from the FIFO into the user buffer.&amp;nbsp;You cannot read all the entries in the FIFO in a single operation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please let me know if you have any other questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ana&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 10:29:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/What-is-the-difference-between-RX-FIFO-and-message-box/m-p/727027#M1785</guid>
      <dc:creator>AnaAldescu</dc:creator>
      <dc:date>2018-03-23T10:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between RX FIFO and message box</title>
      <link>https://community.nxp.com/t5/S32K/What-is-the-difference-between-RX-FIFO-and-message-box/m-p/727028#M1786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the main difference is that the RX FIFO goes on working in the backround by receiving frames and stores them until the application is requesting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This maybe also the explains the problem that I am having with the RX FIFO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;the application is not polling the data fast enough and the RX FIFO is overrun., the FlexCAN driver seems to get stuck and looping through the IRQ Handler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:17:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/What-is-the-difference-between-RX-FIFO-and-message-box/m-p/727028#M1786</guid>
      <dc:creator>christianmächle</dc:creator>
      <dc:date>2018-03-23T14:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between RX FIFO and message box</title>
      <link>https://community.nxp.com/t5/S32K/What-is-the-difference-between-RX-FIFO-and-message-box/m-p/727029#M1787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regard to&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;RX FIFO is overrun and continuous looping of IRQ&amp;nbsp; is because the driver &lt;SPAN&gt;IRQ Handler&amp;nbsp;&lt;/SPAN&gt;will clear the over flow status and on the next frame this will be triggered again if the application callback don't do something in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 14:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/What-is-the-difference-between-RX-FIFO-and-message-box/m-p/727029#M1787</guid>
      <dc:creator>alexandrunan</dc:creator>
      <dc:date>2018-04-02T14:40:37Z</dc:date>
    </item>
  </channel>
</rss>

