<?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: Issue Regarding CAN Filter mask. in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Issue-Regarding-CAN-Filter-mask/m-p/1194587#M9142</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you clear mask acceptance register then all IDs will be accepted to respective message buffer if it is free to receive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Petr&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 09:36:25 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2020-12-07T09:36:25Z</dc:date>
    <item>
      <title>Issue Regarding CAN Filter mask.</title>
      <link>https://community.nxp.com/t5/S32K/Issue-Regarding-CAN-Filter-mask/m-p/1193924#M9130</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I am using NXP arm design studio for s32k144 chip set,&lt;/P&gt;&lt;P&gt;For receiving a specific extended CAN message from a external device I have configured the CAN filter mask, after the filter mask configuration is made I'm receiving configured messages as well as non-configured messages also.&lt;/P&gt;&lt;P&gt;Here i am attaching my configuration, kindly help me to over come this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*! @brief PAL instance information */&lt;BR /&gt;const can_instance_t canPal1_instance = {CAN_INST_TYPE_FLEXCAN, 1U};&lt;/P&gt;&lt;P&gt;/*! @brief User configuration structure */&lt;BR /&gt;const can_user_config_t canPal1_Config0 = {&lt;BR /&gt;.maxBuffNum = 16UL,&lt;BR /&gt;.mode = CAN_NORMAL_MODE,&lt;BR /&gt;.peClksrc=CAN_CLK_SOURCE_PERIPH,&lt;BR /&gt;.enableFD = false,&lt;BR /&gt;.payloadSize = CAN_PAYLOAD_SIZE_8,&lt;BR /&gt;.nominalBitrate = {&lt;BR /&gt;.propSeg = 7,&lt;BR /&gt;.phaseSeg1 = 4,&lt;BR /&gt;.phaseSeg2 = 1,&lt;BR /&gt;.preDivider = 2,&lt;BR /&gt;.rJumpwidth = 1&lt;BR /&gt;},&lt;BR /&gt;.dataBitrate = {&lt;BR /&gt;.propSeg = 7,&lt;BR /&gt;.phaseSeg1 = 4,&lt;BR /&gt;.phaseSeg2 = 1,&lt;BR /&gt;.preDivider = 2,&lt;BR /&gt;.rJumpwidth = 1&lt;BR /&gt;},&lt;BR /&gt;.extension = NULL,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;//Initialisation&lt;BR /&gt;unsigned char Can_Init(void)&lt;BR /&gt;{&lt;BR /&gt;unsigned char ret_val_u8 = 0;&lt;/P&gt;&lt;P&gt;/*#1 Initialize CAN engine - baudrate, DMA or IT, filter buffer init with table */&lt;BR /&gt;ret_val_u8 = CAN_Init(&amp;amp;canPal1_instance, &amp;amp;canPal1_Config0);&lt;/P&gt;&lt;P&gt;/*#2 Configure the Tx buffer using MailBox 0 &amp;amp; 1*/&lt;BR /&gt;can_buff_tx_config_e.enableFD = FALSE;&lt;BR /&gt;can_buff_tx_config_e.enableBRS = FALSE;&lt;BR /&gt;can_buff_tx_config_e.idType = CAN_MSG_ID_EXT;&lt;BR /&gt;can_buff_tx_config_e.isRemote = FALSE;&lt;BR /&gt;can_buff_tx_config_e.fdPadding = 0;&lt;/P&gt;&lt;P&gt;ret_val_u8 += CAN_ConfigTxBuff(&amp;amp;canPal1_instance, TX_MAILBOX0, &amp;amp;can_buff_tx_config_e);&lt;BR /&gt;ret_val_u8 += CAN_ConfigTxBuff(&amp;amp;canPal1_instance, TX_MAILBOX1, &amp;amp;can_buff_tx_config_e);&lt;/P&gt;&lt;P&gt;/*#3 Configure the Rx buffer using MailBox 2 */&lt;BR /&gt;can_buff_rx_config_e.enableFD = FALSE;&lt;BR /&gt;can_buff_rx_config_e.enableBRS = FALSE;&lt;BR /&gt;can_buff_rx_config_e.idType = CAN_MSG_ID_EXT;&lt;BR /&gt;can_buff_rx_config_e.isRemote = FALSE;&lt;BR /&gt;can_buff_rx_config_e.fdPadding = 0;&lt;/P&gt;&lt;P&gt;/*#4 Start reception of Rx Buffer (initially with a fixed acceptance address (NULL)) */&lt;BR /&gt;/* NULL is assigned in order to avoid any incoming messages before application starts */&lt;BR /&gt;ret_val_u8 += CAN_ConfigRxBuff(&amp;amp;canPal1_instance, RX_MAILBOX0, &amp;amp;can_buff_rx_config_e, MIN_U32);&lt;/P&gt;&lt;P&gt;/*#5 Change the mask mode to "Individual Mask" (so other Masks will be zero) with complete masking */&lt;BR /&gt;ret_val_u8 += CAN_SetRxFilter(&amp;amp;canPal1_instance, CAN_MSG_ID_EXT, RX_MAILBOX0, 0);&lt;/P&gt;&lt;P&gt;/*#6 Inclusion of callback function of the IT and DMA events */&lt;BR /&gt;/* FlexCAN driver includes few additional functionality than CAN-PAL drivers&lt;BR /&gt;* NOTE: Don't use RxFIFO feature in Can_Init if we use this callback */&lt;BR /&gt;FLEXCAN_DRV_InstallEventCallback(canPal1_instance.instIdx, Can_Callback_Event, NULL);&lt;BR /&gt;return(ret_val_u8);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* #1 Configure the Rx Mailbox with required address */&lt;BR /&gt;ret_val_u8 = CAN_ConfigRxBuff(&amp;amp;canPal1_instance, FILTER_BANK_0,&amp;amp;can_buff_rx_config_e, 0x01023345);&lt;/P&gt;&lt;P&gt;/* #2 Configure the Mask of the Rx Mailbox */&lt;BR /&gt;ret_val_u8 += CAN_SetRxFilter(&amp;amp;canPal1_instance, CAN_MSG_ID_EXT, FILTER_BANK_0,0x1FFFFFFF);&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 13:11:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-Regarding-CAN-Filter-mask/m-p/1193924#M9130</guid>
      <dc:creator>sandhyaravikuma</dc:creator>
      <dc:date>2020-12-04T13:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Regarding CAN Filter mask.</title>
      <link>https://community.nxp.com/t5/S32K/Issue-Regarding-CAN-Filter-mask/m-p/1194587#M9142</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you clear mask acceptance register then all IDs will be accepted to respective message buffer if it is free to receive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Petr&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 09:36:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-Regarding-CAN-Filter-mask/m-p/1194587#M9142</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2020-12-07T09:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Regarding CAN Filter mask.</title>
      <link>https://community.nxp.com/t5/S32K/Issue-Regarding-CAN-Filter-mask/m-p/1205538#M9440</link>
      <description>&lt;P&gt;Thanks PetrS. This issue is resolved.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 11:11:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-Regarding-CAN-Filter-mask/m-p/1205538#M9440</guid>
      <dc:creator>sandhyaravikuma</dc:creator>
      <dc:date>2021-01-01T11:11:05Z</dc:date>
    </item>
  </channel>
</rss>

