<?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: CAN local Tx priority in S32K</title>
    <link>https://community.nxp.com/t5/S32K/CAN-local-Tx-priority/m-p/1162172#M8375</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for comments.&lt;/P&gt;&lt;P&gt;So regarding sending messages in order, "legacy" LPRIOEN=1 is the best option. In CANFD mode and support for 64 byte data payload enabled, S32K144 has only 7 MB's. Since real life application requires several Rx acceptance filters, one per Rx MB,&amp;nbsp;so I'm left with only 2-3 Tx MB's. There are 3 local priority bits, which allows transmission of up to 2^3=8 ordered messages.&amp;nbsp;I mean filling free Tx buffer with data as soon as one Tx MB is sent. With "send lowest numbered MB first" I'm limited by number of Tx MB's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2020 07:55:53 GMT</pubDate>
    <dc:creator>kef2</dc:creator>
    <dc:date>2020-10-02T07:55:53Z</dc:date>
    <item>
      <title>CAN local Tx priority</title>
      <link>https://community.nxp.com/t5/S32K/CAN-local-Tx-priority/m-p/1158583#M8270</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To send messages in order&amp;nbsp;local Tx buffer priority was used on former versions of FlexCAN modules, LPRIOEN=1. Priority variable, which kept PRIO bits for next transfer was incremented before each transfer and reset to zero in case all Tx buffers&amp;nbsp;were empty prior to transfer. &lt;STRIKE&gt;This seems failing with flexible data rate enabled, FDEN=1. I'm not yet sure, perhaps it's just SW error,issue is being investigated. &lt;/STRIKE&gt;[Update: FIXED]&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;1. It is told in S32K RM that LPRIOEN bit is for legacy applications. Does it mean it works only in standard, non FD mode? &lt;/STRIKE&gt;[Update: This indeed works in FD mode too]&lt;/P&gt;&lt;P&gt;2. If LPRIOEN is legacy, then what other mechanisms should be used to provide in order messages transfer? LBUF=1, which is send least numbered buffer first seems kind of good for this. But in case the top buffer is already scheduled I need to wait for it to be send, else filling buffer with smaller number I'm risking to send out of order. Isn't it?&lt;/P&gt;&lt;P&gt;3. LBUF=1 using ESR2.LPTM to find lowest priority Tx Mailbox. This perhaps is the best I could do, but it is not clear how LPTM is calculated. It is told "If CTRL1[LBUF] is asserted then the mailbox&lt;BR /&gt;indicated is the highest number active Tx mailbox.". This is not quite true. After initialization I see LPTM pointing to least number active Tx mailbox, not to highest number Tx mailbox.&lt;/P&gt;&lt;P&gt;4. LBUF=1. What will LPTM point in case&amp;nbsp;6 mailboxes N=0..5&amp;nbsp;are configured as Tx mailboxes and&amp;nbsp; Tx buffer fullness map is accordingly 0-0-1-1-0-0? Since lowest N mailbox is transferred first, for transfer in order I should fill mailbox N=4. Is LPTM supposed to point to N=0 or N=4?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 10:52:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-local-Tx-priority/m-p/1158583#M8270</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2020-09-24T10:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: CAN local Tx priority</title>
      <link>https://community.nxp.com/t5/S32K/CAN-local-Tx-priority/m-p/1161983#M8371</link>
      <description>&lt;P&gt;Hello &lt;A id="link_12" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59129" target="_self"&gt;kef2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products and the opportunity to serve you. My name is Omar and I will gladly answer your questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. The mechanism of arbitration depend on the LPRIOEN and LBUFThe arbitration process select the winner among the active Tx mailboxes at the end of&lt;/P&gt;
&lt;P&gt;the scan according to the settings of both CTRL1[LBUF] and MCR[LPRIOEN].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. If CTRL1[LBUF] is asserted, the first (lowest number) active Tx mailbox found is the&lt;/P&gt;
&lt;P&gt;arbitration winner. MCR[LPRIOEN] has no effect when CTRL1[LBUF] is asserted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. In this case the MB with the lowest number wins the arbitration(N=0), LPTM points to N=4 since it has the lowest priority.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Omar&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 18:16:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-local-Tx-priority/m-p/1161983#M8371</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2020-10-01T18:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: CAN local Tx priority</title>
      <link>https://community.nxp.com/t5/S32K/CAN-local-Tx-priority/m-p/1162172#M8375</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for comments.&lt;/P&gt;&lt;P&gt;So regarding sending messages in order, "legacy" LPRIOEN=1 is the best option. In CANFD mode and support for 64 byte data payload enabled, S32K144 has only 7 MB's. Since real life application requires several Rx acceptance filters, one per Rx MB,&amp;nbsp;so I'm left with only 2-3 Tx MB's. There are 3 local priority bits, which allows transmission of up to 2^3=8 ordered messages.&amp;nbsp;I mean filling free Tx buffer with data as soon as one Tx MB is sent. With "send lowest numbered MB first" I'm limited by number of Tx MB's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 07:55:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/CAN-local-Tx-priority/m-p/1162172#M8375</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2020-10-02T07:55:53Z</dc:date>
    </item>
  </channel>
</rss>

