<?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: Changing Payload length in FlexRay config in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Changing-Payload-length-in-FlexRay-config/m-p/1089339#M17384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found a very useful application to calculate&amp;nbsp;CRC. see the attachment.&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/110110i8A29CE9356E6F77C/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;&lt;/P&gt;&lt;P&gt;I believe it helps you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2020 08:25:33 GMT</pubDate>
    <dc:creator>dianabatrlova</dc:creator>
    <dc:date>2020-08-12T08:25:33Z</dc:date>
    <item>
      <title>Changing Payload length in FlexRay config</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Changing-Payload-length-in-FlexRay-config/m-p/1089336#M17381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar to the community post in&amp;nbsp;&lt;A href="https://community.nxp.com/thread/309393"&gt;FlexRay not starting after changing the Protocol settings&lt;/A&gt;&amp;nbsp;, I'm trying to change the payload length to decimal '127' to transmit/receive 254 bytes (Maximum) of data. Naturally, this will have implications with other config parameter, I need help in setting other parameters which is affected by the change in&amp;nbsp;G_PAYLOAD_LENGTH_STATIC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the details of the hardware used:&lt;/P&gt;&lt;P&gt;1. Development board: EVB9S12XF512E (S12XFSTARTERKITE: S12XF 2-Node Starter Kit)&lt;/P&gt;&lt;P&gt;2. Target Processor: MC9S12XF512MLM&lt;/P&gt;&lt;P&gt;3. Code: Low speed FlexRay example from&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/downloads/en/snippets-boot-code-headers-monitors/EVB9S12XF512E_Node1_LS.zip" title="https://www.nxp.com/downloads/en/snippets-boot-code-headers-monitors/EVB9S12XF512E_Node1_LS.zip"&gt;https://www.nxp.com/downloads/en/snippets-boot-code-headers-monitors/EVB9S12XF512E_Node1_LS.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not find the marked correct answer in similar post, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/milanbaca"&gt;milanbaca&lt;/A&gt;‌ indicated changes in payload and CRC in&amp;nbsp;Fr_transmit_buffer_config_type Fr_tx_buffer_slot_XX_cfg structure. Are these the only changes to be done?, since the OP could not resolve their issue with said changes. The constraint for 'gPayloadLengthStatic' mentioned in the FlexRay specs doc is as following:&lt;/P&gt;&lt;P&gt;B.4.40 gPayloadLengthStatic&lt;BR /&gt;Consider the following assumption:&lt;BR /&gt;• The duration of a static frame transmission shall not exceed the maximum transmission duration of&lt;BR /&gt;a CC.&lt;BR /&gt;Therefore the following constraint must be met:&lt;BR /&gt;Constraint 55:&lt;BR /&gt;adTxStat[µs] &amp;lt;= adTxMax[µs]&lt;BR /&gt;with adTxStat being the upper bound for the static frame transmission duration, calculated by&lt;BR /&gt;[43] adTxStat[µs] = aFrameLengthStatic[gdBit] * adBitMax[µs/gdBit]&lt;BR /&gt;with the definition of aFrameLengthStatic as given in equation [22] in B.4.12.&lt;BR /&gt;Based on Constraint 55 and equation [43], the following constraint must be met:&lt;BR /&gt;Constraint 56:,&lt;BR /&gt;gPayloadLengthStatic[two-byte word] &amp;lt;= floor( (adTxMax[µs] / adBitMax[µs/gdBit] -&lt;BR /&gt;gdTSSTransmitter[gdBit] - cdFSS[gdBit] - 80 [gdBit] - cdFES[gdBit] ) /&lt;BR /&gt;20 [gdBit/two-byte word] ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requesting help in getting the config parameters correct, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/dianabatrlova"&gt;dianabatrlova&lt;/A&gt;‌, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/RadekS"&gt;RadekS&lt;/A&gt;‌, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/milanbaca"&gt;milanbaca&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jul 2020 10:51:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Changing-Payload-length-in-FlexRay-config/m-p/1089336#M17381</guid>
      <dc:creator>ramakr02</dc:creator>
      <dc:date>2020-07-26T10:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Payload length in FlexRay config</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Changing-Payload-length-in-FlexRay-config/m-p/1089337#M17382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question requires detailed knowledge of the FlexRay protocol specification. Since this SW is older and no one currently working with it, I can provide you only information below:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;When increasing &lt;EM style="color: blue; font-size: 10.0pt; "&gt;gPayloadLengthStatic &lt;/EM&gt;parameter, then the easiest way is to change the following parameters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="color: black;"&gt;&lt;EM style="color: blue; font-size: 10.0pt; "&gt;gdStaticSlot &lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;(grows with the gPayloadLengthStatic) &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM style="color: blue; font-size: 10.0pt; "&gt;gNumberOfStaticSlots&lt;/EM&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; (reduce number of static slots to have the same length of static segment)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional parameters which has to be modified:&lt;/P&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI&gt;P_KEY_SLOT_HEADER_CRC&lt;/LI&gt;&lt;LI&gt;Header CRC for each Tx slot in static segment.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 14:11:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Changing-Payload-length-in-FlexRay-config/m-p/1089337#M17382</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-08-05T14:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Payload length in FlexRay config</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Changing-Payload-length-in-FlexRay-config/m-p/1089338#M17383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply. I will work on the inputs in your message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proceeding with suggested changes to the parameters, I have one more question regarding the computation of header CRC. A similar post to the question is&amp;nbsp;&lt;A href="https://community.nxp.com/thread/64182"&gt;How to Calculate FlexRay Header CRC&lt;/A&gt;. The current structure in Example code (&lt;A class="link-titled" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fdownloads%2Fen%2Fsnippets-boot-code-headers-monitors%2FEVB9S12XF512E_Node1_LS.zip" title="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fdownloads%2Fen%2Fsnippets-boot-code-headers-monitors%2FEVB9S12XF512E_Node1_LS.zip"&gt;https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fdownloads%2Fen%2Fsnippets-boot-code-headers…&lt;/A&gt;&amp;nbsp;)for slot 1 transmission is as follows:&lt;BR /&gt;const Fr_transmit_buffer_config_type Fr_tx_buffer_slot_01_cfg =&lt;BR /&gt;{&lt;BR /&gt; 1, // Transmit frame ID&lt;BR /&gt; 242, // Header CRC&lt;BR /&gt; 16, // Payload length&lt;BR /&gt; FR_DOUBLE_TRANSMIT_BUFFER, // Transmit MB buffering&lt;BR /&gt; FR_STATE_TRANSMISSION_MODE, // Transmission mode&lt;BR /&gt; FR_STREAMING_COMMIT_MODE, // Transmission commit mode&lt;BR /&gt; FR_CHANNEL_AB, // Transmit channels&lt;BR /&gt; FALSE, // Payload preamble&lt;BR /&gt; FALSE, // Transmit cycle counter filter enable&lt;BR /&gt; 0, // Transmit cycle counter filter value&lt;BR /&gt; 0, // Transmit cycle counter filter mask&lt;BR /&gt; TRUE, // Transmit MB interrupt enable&lt;BR /&gt; TRUE // FALSE - interrupt is enabled at commit side, TRUE - interrupt is enabled at transmit side&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to know how decimal 242 is computed for header CRC? The header section could be as follows:&lt;/P&gt;&lt;P&gt;1. 0x00090 ; //frame ID =1, payload length=16, all other bits = 0&lt;BR /&gt;OR&lt;BR /&gt; 2. 0xC0090 ; // in addition to above, synce frame and startup bits = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the usual CRC techniques (Ex-Or), but could not match decimal 242.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requesting a little more of your time, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/dianabatrlova"&gt;dianabatrlova&lt;/A&gt;‌, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/RadekS"&gt;RadekS&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2020 20:13:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Changing-Payload-length-in-FlexRay-config/m-p/1089338#M17383</guid>
      <dc:creator>ramakr02</dc:creator>
      <dc:date>2020-08-07T20:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Payload length in FlexRay config</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Changing-Payload-length-in-FlexRay-config/m-p/1089339#M17384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found a very useful application to calculate&amp;nbsp;CRC. see the attachment.&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/110110i8A29CE9356E6F77C/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;&lt;/P&gt;&lt;P&gt;I believe it helps you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 08:25:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Changing-Payload-length-in-FlexRay-config/m-p/1089339#M17384</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-08-12T08:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Payload length in FlexRay config</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Changing-Payload-length-in-FlexRay-config/m-p/1089340#M17385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Diana, the application was exactly what i was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 08:58:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Changing-Payload-length-in-FlexRay-config/m-p/1089340#M17385</guid>
      <dc:creator>ramakr02</dc:creator>
      <dc:date>2020-08-12T08:58:17Z</dc:date>
    </item>
  </channel>
</rss>

