<?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 Understanding flexcan callback/FIFO in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Understanding-flexcan-callback-FIFO/m-p/2015297#M44331</link>
    <description>&lt;P&gt;I am trying to convert my canbus code so that instead of transmitting data constantly using sendblocking it waits to receive a message and then sends out data based on the message received.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pb632146_1-1734436716453.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/316281i11B92A11A1093A2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pb632146_1-1734436716453.png" alt="pb632146_1-1734436716453.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this sample callback data from elsewhere example code, and am trying to understand how to utilize it properly. As it is written in this example when it finishes a receive command and writes the frame into rxData, it will then raise the&amp;nbsp; "rx_complete" event and start another receive. Does this event still get raised even if the send/read returns an error/non success?&lt;/P&gt;&lt;P&gt;Similarly with sending, since the send would raise a tx complete callback it would then start an infinite loop of sending the same data over and over? as itd send, raise "tx_complete" then send again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to return to the original goal of transmitting specific data based on the id received, I would want to place a function call within the rx_complete event case that would handle the parsing of the id, send the data off, and in the tx callback for a completed send I would call a receive to wait for its next request? I made a very basic block diagram to illustrate the intention does this make sense for how to use the callback functions?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pb632146_5-1734438267100.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/316290i977F1D47B1C336E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pb632146_5-1734438267100.png" alt="pb632146_5-1734438267100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However if I only use one rx MB then there is no buffer correct? So if I receive too many frames too quickly then data can be lost? Which then leads into using the fifo instead as it can hold onto up to 6, and the procedure is the same as receive just that it reads the buffer instead of the waiting for a new frame?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pb632146_0-1734436684763.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/316280i55042DA9A1312C62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pb632146_0-1734436684763.png" alt="pb632146_0-1734436684763.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However the fifo says it uses message buffer 0, but the example canbus code provided&amp;nbsp; by Can_Example_S32K344 uses id 0 as the TX mb so what happens there?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pb632146_2-1734437132683.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/316283iF15902C914F7A6EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pb632146_2-1734437132683.png" alt="pb632146_2-1734437132683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does the buffer initialize with the rest of the canbus or is there anything extra I need to do for it.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2024 12:27:25 GMT</pubDate>
    <dc:creator>pb632146</dc:creator>
    <dc:date>2024-12-17T12:27:25Z</dc:date>
    <item>
      <title>Understanding flexcan callback/FIFO</title>
      <link>https://community.nxp.com/t5/S32K/Understanding-flexcan-callback-FIFO/m-p/2015297#M44331</link>
      <description>&lt;P&gt;I am trying to convert my canbus code so that instead of transmitting data constantly using sendblocking it waits to receive a message and then sends out data based on the message received.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pb632146_1-1734436716453.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/316281i11B92A11A1093A2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pb632146_1-1734436716453.png" alt="pb632146_1-1734436716453.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this sample callback data from elsewhere example code, and am trying to understand how to utilize it properly. As it is written in this example when it finishes a receive command and writes the frame into rxData, it will then raise the&amp;nbsp; "rx_complete" event and start another receive. Does this event still get raised even if the send/read returns an error/non success?&lt;/P&gt;&lt;P&gt;Similarly with sending, since the send would raise a tx complete callback it would then start an infinite loop of sending the same data over and over? as itd send, raise "tx_complete" then send again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to return to the original goal of transmitting specific data based on the id received, I would want to place a function call within the rx_complete event case that would handle the parsing of the id, send the data off, and in the tx callback for a completed send I would call a receive to wait for its next request? I made a very basic block diagram to illustrate the intention does this make sense for how to use the callback functions?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pb632146_5-1734438267100.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/316290i977F1D47B1C336E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pb632146_5-1734438267100.png" alt="pb632146_5-1734438267100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However if I only use one rx MB then there is no buffer correct? So if I receive too many frames too quickly then data can be lost? Which then leads into using the fifo instead as it can hold onto up to 6, and the procedure is the same as receive just that it reads the buffer instead of the waiting for a new frame?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pb632146_0-1734436684763.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/316280i55042DA9A1312C62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pb632146_0-1734436684763.png" alt="pb632146_0-1734436684763.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However the fifo says it uses message buffer 0, but the example canbus code provided&amp;nbsp; by Can_Example_S32K344 uses id 0 as the TX mb so what happens there?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pb632146_2-1734437132683.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/316283iF15902C914F7A6EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pb632146_2-1734437132683.png" alt="pb632146_2-1734437132683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does the buffer initialize with the rest of the canbus or is there anything extra I need to do for it.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 12:27:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Understanding-flexcan-callback-FIFO/m-p/2015297#M44331</guid>
      <dc:creator>pb632146</dc:creator>
      <dc:date>2024-12-17T12:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding flexcan callback/FIFO</title>
      <link>https://community.nxp.com/t5/S32K/Understanding-flexcan-callback-FIFO/m-p/2015614#M44350</link>
      <description>Is message buffer the same as mailbox in this, they seem to be used somewhat interchangeably in the user manual? Do they have any buffer to them or does each mailbox/MB only individually hold one message at a time and splitting them up is how you manage multiple things coming in at once?&lt;BR /&gt;&lt;BR /&gt;How do you manage id filtering with them? Is that what rxmask type is for?</description>
      <pubDate>Wed, 18 Dec 2024 00:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Understanding-flexcan-callback-FIFO/m-p/2015614#M44350</guid>
      <dc:creator>pb632146</dc:creator>
      <dc:date>2024-12-18T00:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding flexcan callback/FIFO</title>
      <link>https://community.nxp.com/t5/S32K/Understanding-flexcan-callback-FIFO/m-p/2015638#M44351</link>
      <description>If I have multiple mailboxes set to receive all ids or masked to receive certain ids, will it automatically see that one is full/busy and place the message into the next available mailbox?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Dec 2024 01:14:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Understanding-flexcan-callback-FIFO/m-p/2015638#M44351</guid>
      <dc:creator>pb632146</dc:creator>
      <dc:date>2024-12-18T01:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding flexcan callback/FIFO</title>
      <link>https://community.nxp.com/t5/S32K/Understanding-flexcan-callback-FIFO/m-p/2113429#M49741</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230291"&gt;@pb632146&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you understand something more about the CBK? I am looking also to the ID received in the context of the cbk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 08:27:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Understanding-flexcan-callback-FIFO/m-p/2113429#M49741</guid>
      <dc:creator>il_ciancio</dc:creator>
      <dc:date>2025-06-10T08:27:03Z</dc:date>
    </item>
  </channel>
</rss>

