<?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>MQX Software Solutions中的主题 Re: MQX-FlexCAN (PXN20) more Rx mailboxes</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-FlexCAN-PXN20-more-Rx-mailboxes/m-p/277058#M8613</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;On PXN20, each FlexCAN Message Buffer 0-15 has it's own interrupt vector. Thus, I think you should call FLEXCAN_Install_isr for the mailboxes 0-3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also inside the isr FLEXCAN_ISR_MB(), replace the line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can_reg_ptr-&amp;gt;IFLAG |= tmp_reg; /* read modify write */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can_reg_ptr-&amp;gt;IFLAG = tmp_reg; /* write */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2013 09:41:52 GMT</pubDate>
    <dc:creator>Martin_</dc:creator>
    <dc:date>2013-03-01T09:41:52Z</dc:date>
    <item>
      <title>MQX-FlexCAN (PXN20) more Rx mailboxes</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-FlexCAN-PXN20-more-Rx-mailboxes/m-p/277057#M8612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After testing FlexCAN driver (MQX3.8) I still have problem with CAN mailboxes.&lt;/P&gt;&lt;P&gt;So main idea of my application is use more than one mailboxes for receiving CAN messages with specific IDs range (I have some modules based on HSC12 which sending measured and other data to TWR-PXN20 as data interface module between distributed control system and visualisation).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex. 0x100 is base address for module A. 0x0c is base address form module B. and so on.&lt;/P&gt;&lt;P&gt;So message IDs 0x100, 0x101,... should be received by one mailbox and 0x0c0, 0x0c1,... by second mailbox.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After testing and studying reference manual for PXN20 and FlaxCAN driver I am a little bit confused by driver's function. Because it looks like everything is OK when I am sending only messages with corresponding ID range to mailbox 0 (in this case every messages are correctly received). After second messages IDs range was added to sending for mailbox 0 is still everything OK but mailbox 1 can receive only last from messages.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I think that messages filtering is ok and it should be OK but somewhere is problem and I can not find it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know where is problem? (can source files are attached)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: for now TWR-SER module in kit is used like DCS simulator.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338907"&gt;can.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338907"&gt;can.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 22:18:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-FlexCAN-PXN20-more-Rx-mailboxes/m-p/277057#M8612</guid>
      <dc:creator>michal_kelnar</dc:creator>
      <dc:date>2013-02-27T22:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: MQX-FlexCAN (PXN20) more Rx mailboxes</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-FlexCAN-PXN20-more-Rx-mailboxes/m-p/277058#M8613</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;On PXN20, each FlexCAN Message Buffer 0-15 has it's own interrupt vector. Thus, I think you should call FLEXCAN_Install_isr for the mailboxes 0-3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also inside the isr FLEXCAN_ISR_MB(), replace the line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can_reg_ptr-&amp;gt;IFLAG |= tmp_reg; /* read modify write */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can_reg_ptr-&amp;gt;IFLAG = tmp_reg; /* write */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 09:41:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-FlexCAN-PXN20-more-Rx-mailboxes/m-p/277058#M8613</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2013-03-01T09:41:52Z</dc:date>
    </item>
  </channel>
</rss>

