<?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: Receive FlexCan FD S32K148</title>
    <link>https://community.nxp.com/t5/S32K/Receive-FlexCan-FD-S32K148/m-p/1089596#M7858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you cannot send/receive just 36 bytes, with DLC=14 FlexCAN sends/receives 48 bytes, with DLC=15 it sends/receives 64 bytes and so on.&lt;/P&gt;&lt;P&gt;Moreover with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 0] = 0xCC4F0000 |&amp;nbsp;14 &amp;lt;&amp;lt;CAN_WMBn_CS_DLC_SHIFT; /* MB0 word 0: */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;64 bytes will be sent, to send 48 bytes use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 0] = 0xCC400000 |&amp;nbsp;14 &amp;lt;&amp;lt;CAN_WMBn_CS_DLC_SHIFT; /* MB0 word 0: */&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&gt;BR, Petr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2020 19:06:53 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2020-06-12T19:06:53Z</dc:date>
    <item>
      <title>Receive FlexCan FD S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Receive-FlexCan-FD-S32K148/m-p/1089595#M7857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;im trying to send data (36 bytes) using CAN FD :&lt;/P&gt;&lt;P&gt;for example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 2] = 22; /* MB0 word 2 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 3] = 33; /* MB0 word 3 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 4] = 44; /* MB0 word 4 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 5] = 55; /* MB0 word&amp;nbsp; 5*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 6] = 66; /* MB0 word 6 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 7] = 77; /* MB0 word&amp;nbsp; 7*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 8] = 88; /* MB0 word 8 */&lt;BR /&gt; CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 9] = 99; /* MB0 word&amp;nbsp; 9*/&lt;BR /&gt; CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 10] = 100; /* MB0 word&amp;nbsp; 10*/&lt;BR /&gt; CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 1] = 0x14440000; /* MB0 word 1: Tx msg with STD ID 0x511 */&lt;BR /&gt; CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 0] = 0xCC4F0000 |&amp;nbsp;14 &amp;lt;&amp;lt;CAN_WMBn_CS_DLC_SHIFT; /* MB0 word 0: */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;since im sending a payload of 36 bytes the DLC should be equal to 14.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/112698i044546C90EBC14A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- In Receive function : i retreive the DLC which is equal to 14&lt;/P&gt;&lt;P&gt;and acording to the table above a DLC equal to 14 means my data size could be 0 to 48 byte.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how should i know that my data is only 36 bytes and not 48bytes.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;hope my question is clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2020 12:24:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Receive-FlexCan-FD-S32K148/m-p/1089595#M7857</guid>
      <dc:creator>faress_mansouri</dc:creator>
      <dc:date>2020-06-12T12:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Receive FlexCan FD S32K148</title>
      <link>https://community.nxp.com/t5/S32K/Receive-FlexCan-FD-S32K148/m-p/1089596#M7858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you cannot send/receive just 36 bytes, with DLC=14 FlexCAN sends/receives 48 bytes, with DLC=15 it sends/receives 64 bytes and so on.&lt;/P&gt;&lt;P&gt;Moreover with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 0] = 0xCC4F0000 |&amp;nbsp;14 &amp;lt;&amp;lt;CAN_WMBn_CS_DLC_SHIFT; /* MB0 word 0: */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;64 bytes will be sent, to send 48 bytes use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;CAN0-&amp;gt;RAMn[ 0*MSG_BUF_SIZE + 0] = 0xCC400000 |&amp;nbsp;14 &amp;lt;&amp;lt;CAN_WMBn_CS_DLC_SHIFT; /* MB0 word 0: */&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&gt;BR, Petr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2020 19:06:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Receive-FlexCan-FD-S32K148/m-p/1089596#M7858</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2020-06-12T19:06:53Z</dc:date>
    </item>
  </channel>
</rss>

