<?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>topic MQX 4.2 Can Rx Fifo in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-Can-Rx-Fifo/m-p/465498#M15530</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;According this post was "resolved":&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/337253"&gt;FlexCan RxFIFO&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The CanDriver has a bug (That can I reproduce) on the management of the hardware RxFifo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;I am using the MQX drivers and have looked through the example code given, unfortunately the example doesn't seem geared towards the RxFIFO and I seem to be doing everything they are in the example. It feels like the hardware thinks message buffers 0-5 are in use when the first message comes in. I have stepped through the code and when the interrupt is fired my message is in the RxFIFO buffer 0 and then when the interrupt is cleared it goes to the end of the fifo and the system reads packets of zeros. After 6 messages are received I finally get my very first message to be processed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The fsl_flexcan driver in MQX 4.1 has a bug: the interrupt happens when the message comes in, but it doesn't copy out the message before it clears the interrupt.&amp;nbsp; When the driver reads out the message later, it always seems like you're queue-length messages behind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has been fixed in Kinetis SDK 1.1.0, but I don't know how that applies to the straight MQX distributions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This post was written when MQX 4.2 does not exist, but after test, the problem still present on MQX 4.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anybody has made a patch to resolve this problem?&lt;/P&gt;&lt;P&gt;Thank you:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2016 16:28:55 GMT</pubDate>
    <dc:creator>arnogir</dc:creator>
    <dc:date>2016-01-04T16:28:55Z</dc:date>
    <item>
      <title>MQX 4.2 Can Rx Fifo</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-Can-Rx-Fifo/m-p/465498#M15530</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;According this post was "resolved":&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/337253"&gt;FlexCan RxFIFO&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The CanDriver has a bug (That can I reproduce) on the management of the hardware RxFifo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;I am using the MQX drivers and have looked through the example code given, unfortunately the example doesn't seem geared towards the RxFIFO and I seem to be doing everything they are in the example. It feels like the hardware thinks message buffers 0-5 are in use when the first message comes in. I have stepped through the code and when the interrupt is fired my message is in the RxFIFO buffer 0 and then when the interrupt is cleared it goes to the end of the fifo and the system reads packets of zeros. After 6 messages are received I finally get my very first message to be processed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The fsl_flexcan driver in MQX 4.1 has a bug: the interrupt happens when the message comes in, but it doesn't copy out the message before it clears the interrupt.&amp;nbsp; When the driver reads out the message later, it always seems like you're queue-length messages behind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has been fixed in Kinetis SDK 1.1.0, but I don't know how that applies to the straight MQX distributions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This post was written when MQX 4.2 does not exist, but after test, the problem still present on MQX 4.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anybody has made a patch to resolve this problem?&lt;/P&gt;&lt;P&gt;Thank you:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 16:28:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-2-Can-Rx-Fifo/m-p/465498#M15530</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2016-01-04T16:28:55Z</dc:date>
    </item>
  </channel>
</rss>

