<?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 Re: Buffering CAN RX Messages - Missing Messages When TX Flow Control in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Buffering-CAN-RX-Messages-Missing-Messages-When-TX-Flow-Control/m-p/274155#M9573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup that resolved it, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Aug 2013 00:38:51 GMT</pubDate>
    <dc:creator>Dealerz</dc:creator>
    <dc:date>2013-08-27T00:38:51Z</dc:date>
    <item>
      <title>Buffering CAN RX Messages - Missing Messages When TX Flow Control</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Buffering-CAN-RX-Messages-Missing-Messages-When-TX-Flow-Control/m-p/274152#M9570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My design has me using 3 RX mailboxes with MQX 4.0. I have the design almost laid out like the FlexCAN demo where I have a task setup for each RX mailbox and an interrupt to set the event for the task to know when it is ready to read data. I also have a CAN TX task that I pass messages off to when I need to transmit a message. I can receive all data on a CAN network with no issues when on vehicles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I run into is when I'm trying to handle multi-frame responses. When I receive the first frame 0x10 I send the flow control message 0x30 0x00 0x00, the issue though is the vehicle will then transmit the rest of the frames but I only receive the send frame 0x22, I'm missing the first frme after the flow control message 0x21. Why? I even place break points in the RX mailbox to break upon recieving an 0x21 or 0x22 message and it never breaks on a 0x21 message. It's like even though I have 3 RX mailboxes running I'm missing data right after I transmit the flow message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas as to solve this issue of missing messages?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Aug 2013 20:30:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Buffering-CAN-RX-Messages-Missing-Messages-When-TX-Flow-Control/m-p/274152#M9570</guid>
      <dc:creator>Dealerz</dc:creator>
      <dc:date>2013-08-25T20:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Buffering CAN RX Messages - Missing Messages When TX Flow Control</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Buffering-CAN-RX-Messages-Missing-Messages-When-TX-Flow-Control/m-p/274153#M9571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most probably it is not an issue of missing messages but issue of missing interrupts. I guess the application software destroys the interrupt flags by read-modify-write sequences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of doing read-modify-write of IFLAG1 register (as in MQX flexcan demo) do a simple write, as you want to clear just one bit at a time, when in the isr:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change from: can_reg_ptr-&amp;gt;IFLAG1 |= tmp_reg;&lt;/P&gt;&lt;P&gt;change to: can_reg_ptr-&amp;gt;IFLAG1 = tmp_reg;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 09:16:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Buffering-CAN-RX-Messages-Missing-Messages-When-TX-Flow-Control/m-p/274153#M9571</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2013-08-26T09:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Buffering CAN RX Messages - Missing Messages When TX Flow Control</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Buffering-CAN-RX-Messages-Missing-Messages-When-TX-Flow-Control/m-p/274154#M9572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ugh, didn't think of that thanks. I'll look it over today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 15:04:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Buffering-CAN-RX-Messages-Missing-Messages-When-TX-Flow-Control/m-p/274154#M9572</guid>
      <dc:creator>Dealerz</dc:creator>
      <dc:date>2013-08-26T15:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Buffering CAN RX Messages - Missing Messages When TX Flow Control</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Buffering-CAN-RX-Messages-Missing-Messages-When-TX-Flow-Control/m-p/274155#M9573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup that resolved it, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 00:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Buffering-CAN-RX-Messages-Missing-Messages-When-TX-Flow-Control/m-p/274155#M9573</guid>
      <dc:creator>Dealerz</dc:creator>
      <dc:date>2013-08-27T00:38:51Z</dc:date>
    </item>
  </channel>
</rss>

