<?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 How to Calculate FlexRay Header CRC in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-FlexRay-Header-CRC/m-p/189558#M7307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using MC9S12XF512 to build a FlexRay application. However, we cannot figure out how the Header CRC configured for each message buffer is calculated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The official FlexRay does give an algorighm, but it looks like that the actual implementation in MC9S12XF512 is different. Because we tried to use that algorithm to calculate the Header CRC, but the result is different from the value given in the sample applications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Apr 2010 02:00:31 GMT</pubDate>
    <dc:creator>yusun</dc:creator>
    <dc:date>2010-04-08T02:00:31Z</dc:date>
    <item>
      <title>How to Calculate FlexRay Header CRC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-FlexRay-Header-CRC/m-p/189558#M7307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using MC9S12XF512 to build a FlexRay application. However, we cannot figure out how the Header CRC configured for each message buffer is calculated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The official FlexRay does give an algorighm, but it looks like that the actual implementation in MC9S12XF512 is different. Because we tried to use that algorithm to calculate the Header CRC, but the result is different from the value given in the sample applications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 02:00:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-FlexRay-Header-CRC/m-p/189558#M7307</guid>
      <dc:creator>yusun</dc:creator>
      <dc:date>2010-04-08T02:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate FlexRay Header CRC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-FlexRay-Header-CRC/m-p/189559#M7308</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;BR /&gt;The FlexRay protocol specs document (can be obtained from &lt;A href="http://www.flexray.com" rel="nofollow" target="_blank"&gt;www.flexray.com&lt;/A&gt;) contains the algorithm, for the header CRC remember to have the inital values as:&lt;/P&gt;&lt;P&gt;vCrcSize=11;&lt;BR /&gt;vCrcInit=[0 0 0 0 0 0 1 1 0 1 0];&lt;BR /&gt;vData=[1 1 0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 0 0 0];&lt;BR /&gt;vCrcPolynomial=[0 1 1 1 0 0 0 0 1 0 1];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;vData as you know is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1 bit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 bit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11bits&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7bits&lt;BR /&gt;[syncFrameBit,startUpFrameBit,frameID,payloadLength]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I found that the CRC result in the end was the other way around (LSB was on the left!)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Good luck!&lt;/P&gt;&lt;P&gt;Kassem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 02:09:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-FlexRay-Header-CRC/m-p/189559#M7308</guid>
      <dc:creator>kwridan</dc:creator>
      <dc:date>2010-04-15T02:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate FlexRay Header CRC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-FlexRay-Header-CRC/m-p/189560#M7309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;I found that the CRC result in the end was the other way around (LSB was on the left!)&lt;/PRE&gt;&lt;P&gt;That's because vData have LSB left, i.e. SY bit is LSB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:40:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-FlexRay-Header-CRC/m-p/189560#M7309</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2020-10-29T09:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate FlexRay Header CRC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-FlexRay-Header-CRC/m-p/189561#M7310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Flexray_CC.c module in the NVC7383 demo code has the header crc calc function in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 15:30:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-Calculate-FlexRay-Header-CRC/m-p/189561#M7310</guid>
      <dc:creator>bobgardner</dc:creator>
      <dc:date>2016-05-11T15:30:17Z</dc:date>
    </item>
  </channel>
</rss>

