<?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>S32 SDKのトピックRe: S32K144 FLEXCAN RX mailbox identification</title>
    <link>https://community.nxp.com/t5/S32-SDK/S32K144-FLEXCAN-RX-mailbox-identification/m-p/1578193#M2867</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184552"&gt;@szblaci&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you mean by CB function?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2023 23:22:02 GMT</pubDate>
    <dc:creator>VaneB</dc:creator>
    <dc:date>2023-01-05T23:22:02Z</dc:date>
    <item>
      <title>S32K144 FLEXCAN RX mailbox identification</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K144-FLEXCAN-RX-mailbox-identification/m-p/1578090#M2866</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using S32K144 MCU for a CAN application with flexcan driver from SDK. I configured dedicated MBs for every incoming messages, RX FIFO is not used.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;CAN0_ORed_0_15_MB_IRQHandler is called for RX messages, this is fine. I also installed a CB function to monitor the CAN activity which is invoked from the IRQ handler.&lt;/P&gt;&lt;P&gt;How can I find out in the CB which mailbox caused the interrupt? As I see the IFLAG is cleared by the IRQ handler before calling my function.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Laszlo&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 16:00:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K144-FLEXCAN-RX-mailbox-identification/m-p/1578090#M2866</guid>
      <dc:creator>szblaci</dc:creator>
      <dc:date>2023-01-05T16:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLEXCAN RX mailbox identification</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K144-FLEXCAN-RX-mailbox-identification/m-p/1578193#M2867</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184552"&gt;@szblaci&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you mean by CB function?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 23:22:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K144-FLEXCAN-RX-mailbox-identification/m-p/1578193#M2867</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-01-05T23:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLEXCAN RX mailbox identification</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K144-FLEXCAN-RX-mailbox-identification/m-p/1578403#M2868</link>
      <description>&lt;P&gt;Hello VaneB,&lt;/P&gt;&lt;P&gt;I have added a callback function using&amp;nbsp;FLEXCAN_DRV_InstallEventCallback driver API. In this function I can check what kind of event provoked the interrupt (FLEXCAN_EVENT_RX_COMPLETE or FLEXCAN_EVENT_TX_COMPLETE) but I do not know how to identify the source mailbox.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe my concept is wrong or I misunderstood something. I would like to implement an interrupt based CAN communication. When a certain frame is received I should copy the data and notify the corresponding software module in the upper layer that its data buffer is updated. So somehow I should know which frame (or mailbox / message buffer) activated the IRQ handler.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The description of the interrupt hander says that "indicating a successful&amp;nbsp;transmission or reception for Message Buffers 0-15." It checks the&amp;nbsp;IFLAG register to find out the actual message buffer number but later on this information is not stored.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 07:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K144-FLEXCAN-RX-mailbox-identification/m-p/1578403#M2868</guid>
      <dc:creator>szblaci</dc:creator>
      <dc:date>2023-01-06T07:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 FLEXCAN RX mailbox identification</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K144-FLEXCAN-RX-mailbox-identification/m-p/1579194#M2875</link>
      <description>&lt;P&gt;Hello VanaB,&lt;/P&gt;&lt;P&gt;Meanwhile I have realized that I used wrong type of callback function. The right one has the&amp;nbsp;buffIdx as a parameter so I can identify the mailbox. (In the FlexCANState structure we have callback and an error_callback functions and they have different&amp;nbsp;&lt;SPAN&gt;signature&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;Sorry for waisting your time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 09:50:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K144-FLEXCAN-RX-mailbox-identification/m-p/1579194#M2875</guid>
      <dc:creator>szblaci</dc:creator>
      <dc:date>2023-01-09T09:50:41Z</dc:date>
    </item>
  </channel>
</rss>

