<?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: FlexCAN Rx Mailbox Config to allow all CAN ID in S32K</title>
    <link>https://community.nxp.com/t5/S32K/FlexCAN-Rx-Mailbox-Config-to-allow-all-CAN-ID/m-p/1095052#M8018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/soumyajit.das@in.bosch.com"&gt;soumyajit.das@in.bosch.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;It was answered here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/467916"&gt;S32K148 CAN receiver without filtering&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2020 07:58:51 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2020-08-17T07:58:51Z</dc:date>
    <item>
      <title>FlexCAN Rx Mailbox Config to allow all CAN ID</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-Rx-Mailbox-Config-to-allow-all-CAN-ID/m-p/1095051#M8017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MCU: S32K144&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have imported the example project "&lt;EM&gt;&lt;STRONG&gt;S32K144_Project_FlexCan&lt;/STRONG&gt;&lt;/EM&gt;" in the S32 IDE. I see that the example shows how to accept data from a particular CAN ID (incoming messages). I would like to know how do we configure the registers to accept messages from any CAN ID (incoming).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see there are three relevant register settings in FlexCAN:&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;RXMGMASK&lt;/STRONG&gt; (&lt;EM&gt;Rx Mailboxes Global Mask register&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;2. &lt;STRONG&gt;RXIMRx&lt;/STRONG&gt; (&lt;EM&gt;Rx Individual Mask registers&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;3. CAN&amp;nbsp; ID field of the MB Message Box Structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the given example, the registers &lt;STRONG&gt;RXMGMASK&lt;/STRONG&gt; is set to &lt;STRONG&gt;0xFFFF&lt;/STRONG&gt; indicating that all bits of the incoming CAN Message ID needs to be considered. Same for &lt;STRONG&gt;RXIMRx&lt;/STRONG&gt; also. In this case, when you configure MB &lt;STRONG&gt;CAN ID&lt;/STRONG&gt; as (say) 555, then incoming messages with &lt;STRONG&gt;CAN ID&lt;/STRONG&gt; 555 will only be allowed to be received by the &lt;STRONG&gt;Rx MB&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if I want the &lt;STRONG&gt;Rx MB&lt;/STRONG&gt; to receive any CAN message bearing any &lt;STRONG&gt;CAN ID&lt;/STRONG&gt;? Is the required setting '&lt;STRONG&gt;RXMGMASK=0x0000&lt;/STRONG&gt;' &amp;amp; '&lt;STRONG&gt;RXIMRx=0x0000&lt;/STRONG&gt;'?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;If yes, then what should we put in the Rx MB CAN ID field?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1. I am using standard CAN ID only&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2. CAN FD (Flexible Data Rate) not used&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3. I am using FlexCAN0 of the MCU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Soumyajit&lt;/P&gt;&lt;P&gt;Bosch, Bangalore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2020 09:35:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-Rx-Mailbox-Config-to-allow-all-CAN-ID/m-p/1095051#M8017</guid>
      <dc:creator>soumyajit_das</dc:creator>
      <dc:date>2020-08-14T09:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Rx Mailbox Config to allow all CAN ID</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-Rx-Mailbox-Config-to-allow-all-CAN-ID/m-p/1095052#M8018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/soumyajit.das@in.bosch.com"&gt;soumyajit.das@in.bosch.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;It was answered here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/467916"&gt;S32K148 CAN receiver without filtering&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2020 07:58:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-Rx-Mailbox-Config-to-allow-all-CAN-ID/m-p/1095052#M8018</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-08-17T07:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Rx Mailbox Config to allow all CAN ID</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-Rx-Mailbox-Config-to-allow-all-CAN-ID/m-p/1243423#M10118</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I read the solution proposed by&amp;nbsp;&lt;SPAN&gt;Daniel but I didn't understand how to modify the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;example project "&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;S32K144_Project_FlexCan&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;" to obtain reading all message incoming with all available IDs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the example any message has the own ID buffer, so it can be read as below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RxID = (CAN0-&amp;gt;RAMn[ 4*MSG_BUF_SIZE + 1] &amp;amp; CAN_WMBn_ID_ID_MASK) &amp;gt;&amp;gt; CAN_WMBn_ID_ID_SHIFT; /* Read ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but without a buffer for reading ID and message, how can I read ID and datafield?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 17:02:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-Rx-Mailbox-Config-to-allow-all-CAN-ID/m-p/1243423#M10118</guid>
      <dc:creator>Andre_b</dc:creator>
      <dc:date>2021-03-10T17:02:08Z</dc:date>
    </item>
  </channel>
</rss>

