<?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 Flexcan Receive without filtering in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Flexcan-Receive-without-filtering/m-p/1413029#M13982</link>
    <description>&lt;P&gt;Hello NXP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use S32K144 board, and i need to receive can messages without filtering and send the data with UART I found in other topics, how to realise this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint16_t&amp;nbsp;MSG_ID = 0x07FF;&lt;/P&gt;&lt;P&gt;/*Initialize the FlexCAN module */&lt;/P&gt;&lt;P&gt;&amp;nbsp;FLEXCAN_DRV_Init(INST_CANCOM1, &amp;amp;canCom1_State, &amp;amp;canCom1_InitConfig0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Enable message buffer global masking */&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_SetRxMaskType(INST_CANCOM1, FLEXCAN_RX_MASK_GLOBAL);&lt;/P&gt;&lt;P&gt;/* Set the global mask as "don't care" for each message buffer */&lt;BR /&gt;FLEXCAN_DRV_SetRxMbGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_STD, 0U);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;flexcan_data_info_t dataInfo =&lt;BR /&gt;{&lt;BR /&gt;.data_length = 8U,&lt;BR /&gt;.msg_id_type = FLEXCAN_MSG_ID_STD,&lt;BR /&gt;.enable_brs = false,&lt;BR /&gt;.fd_enable = false,&lt;/P&gt;&lt;P&gt;.fd_padding = 0U&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Configure message buffer 0 for reception */&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_ConfigRxMb(INST_CANCOM1, 0U, &amp;amp;dataInfo, MSG_ID);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Start receiving data in message buffer 0 */&lt;/P&gt;&lt;P&gt;while (1)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if (FLEXCAN_DRV_Receive(INST_CANCOM1, 0U, &amp;amp;recvBuff) == STATUS_SUCCESS)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;send with UART;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it works. I receive for example 7 CAN messages with ID 0x010,0x011, 0x012, 0x013, 0x014, 0x015, 0x016.&amp;nbsp; But I have a question, why I receive 0x012, 0x012, 0x010 etc. I mean I receive several time the same ID. Or I receive for example 0x013, 0x013,0x015, 0x013, 0x013 etc&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 10:18:02 GMT</pubDate>
    <dc:creator>Alex19</dc:creator>
    <dc:date>2022-02-14T10:18:02Z</dc:date>
    <item>
      <title>Flexcan Receive without filtering</title>
      <link>https://community.nxp.com/t5/S32K/Flexcan-Receive-without-filtering/m-p/1413029#M13982</link>
      <description>&lt;P&gt;Hello NXP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use S32K144 board, and i need to receive can messages without filtering and send the data with UART I found in other topics, how to realise this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint16_t&amp;nbsp;MSG_ID = 0x07FF;&lt;/P&gt;&lt;P&gt;/*Initialize the FlexCAN module */&lt;/P&gt;&lt;P&gt;&amp;nbsp;FLEXCAN_DRV_Init(INST_CANCOM1, &amp;amp;canCom1_State, &amp;amp;canCom1_InitConfig0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Enable message buffer global masking */&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_SetRxMaskType(INST_CANCOM1, FLEXCAN_RX_MASK_GLOBAL);&lt;/P&gt;&lt;P&gt;/* Set the global mask as "don't care" for each message buffer */&lt;BR /&gt;FLEXCAN_DRV_SetRxMbGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_STD, 0U);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;flexcan_data_info_t dataInfo =&lt;BR /&gt;{&lt;BR /&gt;.data_length = 8U,&lt;BR /&gt;.msg_id_type = FLEXCAN_MSG_ID_STD,&lt;BR /&gt;.enable_brs = false,&lt;BR /&gt;.fd_enable = false,&lt;/P&gt;&lt;P&gt;.fd_padding = 0U&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Configure message buffer 0 for reception */&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_ConfigRxMb(INST_CANCOM1, 0U, &amp;amp;dataInfo, MSG_ID);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Start receiving data in message buffer 0 */&lt;/P&gt;&lt;P&gt;while (1)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if (FLEXCAN_DRV_Receive(INST_CANCOM1, 0U, &amp;amp;recvBuff) == STATUS_SUCCESS)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;send with UART;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it works. I receive for example 7 CAN messages with ID 0x010,0x011, 0x012, 0x013, 0x014, 0x015, 0x016.&amp;nbsp; But I have a question, why I receive 0x012, 0x012, 0x010 etc. I mean I receive several time the same ID. Or I receive for example 0x013, 0x013,0x015, 0x013, 0x013 etc&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 10:18:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flexcan-Receive-without-filtering/m-p/1413029#M13982</guid>
      <dc:creator>Alex19</dc:creator>
      <dc:date>2022-02-14T10:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Flexcan Receive without filtering</title>
      <link>https://community.nxp.com/t5/S32K/Flexcan-Receive-without-filtering/m-p/1413076#M13985</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;when using non-blocking function, you should check if transfer is completed, so you can have below code&lt;/P&gt;
&lt;DIV class="line"&gt;
&lt;P&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;FLEXCAN_DRV_Receive(INST_CANCOM1, RX_MAILBOX, &amp;amp;recvBuff);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* Wait for the message to be received */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;while (FLEXCAN_DRV_GetTransferStatus(INST_CANCOM1, RX_MAILBOX) == STATUS_BUSY);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;send with UART&lt;BR /&gt;}&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 12:35:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flexcan-Receive-without-filtering/m-p/1413076#M13985</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2022-02-14T12:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Flexcan Receive without filtering</title>
      <link>https://community.nxp.com/t5/S32K/Flexcan-Receive-without-filtering/m-p/1414663#M14028</link>
      <description>&lt;P&gt;Helllo,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes it works, thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 18:27:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Flexcan-Receive-without-filtering/m-p/1414663#M14028</guid>
      <dc:creator>Alex19</dc:creator>
      <dc:date>2022-02-16T18:27:50Z</dc:date>
    </item>
  </channel>
</rss>

