<?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>S32KのトピックRe: FlexCAN Receive question on S32K148</title>
    <link>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863816#M3793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sumit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can safely call&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FLEXCAN_DRV_Receive within callback function in&amp;nbsp;FLEXCAN_EVENT_RX_COMPLETE event. You do not call&amp;nbsp;&lt;SPAN&gt;FLEXCAN_DRV_ConfigRxMb&amp;nbsp;again.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;FLEXCAN_DRV_Receive&amp;nbsp;just enable MB interrupt which was disabled within IRQ handler before callback is called.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;BR, Petr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2019 12:05:38 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2019-01-30T12:05:38Z</dc:date>
    <item>
      <title>FlexCAN Receive question on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863812#M3789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my application I would like to configure FlexCAN to receive a message with a specific ID. I understand that I need to setup a mailbox to receive the message using FLEXCAN_DRV_ConfigRxMb followed by&amp;nbsp;FLEXCAN_DRV FLEXCAN_DRV_Receive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is the following:&lt;/P&gt;&lt;P&gt;When this message is received and the callback is invoked can I &lt;STRONG&gt;safely&lt;/STRONG&gt; call both of these functions again to configure the mailbox to receive the same message ID again&amp;nbsp;&lt;STRONG&gt;from&lt;/STRONG&gt;&amp;nbsp;within the callback? I need this to happen as fast as possible so as to no drop messages. If there is a better way of handling this please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2019 23:03:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863812#M3789</guid>
      <dc:creator>sumityadav</dc:creator>
      <dc:date>2019-01-25T23:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Receive question on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863813#M3790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to be sure you don't lost messages between MBs config, you can use RxFIFO if you don't use CAN FD messages. To do that you need to set RxFIFO filters.&lt;/P&gt;&lt;P&gt;flexcan_id_table_t flTable[8];&lt;/P&gt;&lt;P&gt;for(i=0;i&amp;lt;8;i++)&lt;BR /&gt; {&lt;BR /&gt; flTable[i].id = 2;&lt;BR /&gt; flTable[i].isExtendedFrame=false;&lt;BR /&gt; flTable[i].isRemoteFrame=false;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_ConfigRxFifo(INST_CANCOM1,FLEXCAN_RX_FIFO_ID_FORMAT_A,&amp;amp;flTable[0]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* You can set a filter mask or not for acceptance by setting global mask to be more easy to handle or you can&lt;/P&gt;&lt;P&gt;skip this part and will check all the id filters as set by initialization */&lt;/P&gt;&lt;P&gt;/* This will set mask to 3 and check ID type as filter set */&lt;/P&gt;&lt;P&gt;FLEXCAN_DRV_SetRxFifoGlobalMask(INST_CANCOM1, FLEXCAN_MSG_ID_STD, ((1U&amp;lt;&amp;lt;30U)|0x3));&lt;BR /&gt; /* Sets the Rx masking type as rx global mask */&lt;BR /&gt; (void) FLEXCAN_DRV_SetRxMaskType(INST_CANCOM1, FLEXCAN_RX_MASK_GLOBAL);&lt;/P&gt;&lt;P&gt;/* End of filter acceptance masking */&lt;/P&gt;&lt;P&gt;&amp;nbsp;Call for&amp;nbsp;transfer of a message already in fifo. For every message in fifo you need to call again the function. If you have a callback installed you can call it again in the event triggered is&amp;nbsp;FLEXCAN_EVENT_RXFIFO_COMPLETE.&lt;/P&gt;&lt;P&gt;status = FLEXCAN_DRV_RxFifo(INST_CANCOM1, &amp;amp;recvBuff);&lt;/P&gt;&lt;P&gt;or you can poll the MBs status for RxFIFO which is MBs 0 all the time.&lt;/P&gt;&lt;P&gt;while(FLEXCAN_DRV_GetTransferStatus(INST_CANCOM1, 0U) == STATUS_BUSY);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Alexandru Nan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2019 08:33:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863813#M3790</guid>
      <dc:creator>alexandrunan</dc:creator>
      <dc:date>2019-01-28T08:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Receive question on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863814#M3791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response Alexandru. We are using CAN FD hence RXFIFO is not an option.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2019 23:55:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863814#M3791</guid>
      <dc:creator>sumityadav</dc:creator>
      <dc:date>2019-01-28T23:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Receive question on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863815#M3792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexandru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 17:43:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863815#M3792</guid>
      <dc:creator>sumityadav</dc:creator>
      <dc:date>2019-01-29T17:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Receive question on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863816#M3793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sumit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can safely call&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FLEXCAN_DRV_Receive within callback function in&amp;nbsp;FLEXCAN_EVENT_RX_COMPLETE event. You do not call&amp;nbsp;&lt;SPAN&gt;FLEXCAN_DRV_ConfigRxMb&amp;nbsp;again.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;FLEXCAN_DRV_Receive&amp;nbsp;just enable MB interrupt which was disabled within IRQ handler before callback is called.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;BR, Petr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2019 12:05:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863816#M3793</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2019-01-30T12:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: FlexCAN Receive question on S32K148</title>
      <link>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863817#M3794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you Petr! Appreciate the response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 00:33:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FlexCAN-Receive-question-on-S32K148/m-p/863817#M3794</guid>
      <dc:creator>sumityadav</dc:creator>
      <dc:date>2019-02-01T00:33:54Z</dc:date>
    </item>
  </channel>
</rss>

