<?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: CRC: bytewise vs. wordwise different results in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CRC-bytewise-vs-wordwise-different-results/m-p/752167#M45825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xaro,&lt;/P&gt;&lt;P&gt;Don't know how you configure the CRC module.&lt;BR /&gt;Have you try to refer the crc example in &lt;A href="https://mcuxpresso.nxp.com/en/select"&gt;SDK_2.2_TWR-K60D100M&lt;/A&gt;(C:\SDK_2.2_TWR-K60D100M\boards\twrk60d100m\driver_examples\crc)?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21404i2FCABD44FB8FECC3/image-size/large?v=v2&amp;amp;px=999" title="crc example.png" alt="crc example.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I can only get the result 0xED82CD11 by using &lt;A href="http://www.ip33.com/crc.html"&gt;online CRC calculation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21358i59BF64FCDBDD2BB8/image-size/large?v=v2&amp;amp;px=999" title="online CRC calculation.png" alt="online CRC calculation.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can also get the same result from K60 running crc example in SDK_2.2_TWR-K60D100M.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21308iFE7408E54CDC7C6B/image-size/large?v=v2&amp;amp;px=999" title="crc example result.png" alt="crc example result.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2018 09:01:22 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2018-05-16T09:01:22Z</dc:date>
    <item>
      <title>CRC: bytewise vs. wordwise different results</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CRC-bytewise-vs-wordwise-different-results/m-p/752166#M45824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Device: K60 (little-endian)&lt;/P&gt;&lt;P&gt;I program in assembly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I write 4 bytes representing the ASCII string "abcd" as a 32 bit *word* to CRC_CRC, I get a different checksum than when I write 4 single bytes in the order 'a', 'b', 'c', 'd' to CRC_CRC[LL], i.e., 4 separate STRB instructions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;results for wordwise calculation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;input: abcd&lt;BR /&gt;checksum: 0x79A5961D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input: dcba&lt;BR /&gt;checksum: 0x1D39469F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;results for bytewise calculation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;input: abcd&lt;BR /&gt;checksum: 0x1D39469F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input: dcba&lt;BR /&gt;checksum: 0x79A5961D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 13:46:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CRC-bytewise-vs-wordwise-different-results/m-p/752166#M45824</guid>
      <dc:creator>xarowubas</dc:creator>
      <dc:date>2018-05-14T13:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: CRC: bytewise vs. wordwise different results</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CRC-bytewise-vs-wordwise-different-results/m-p/752167#M45825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xaro,&lt;/P&gt;&lt;P&gt;Don't know how you configure the CRC module.&lt;BR /&gt;Have you try to refer the crc example in &lt;A href="https://mcuxpresso.nxp.com/en/select"&gt;SDK_2.2_TWR-K60D100M&lt;/A&gt;(C:\SDK_2.2_TWR-K60D100M\boards\twrk60d100m\driver_examples\crc)?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21404i2FCABD44FB8FECC3/image-size/large?v=v2&amp;amp;px=999" title="crc example.png" alt="crc example.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I can only get the result 0xED82CD11 by using &lt;A href="http://www.ip33.com/crc.html"&gt;online CRC calculation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21358i59BF64FCDBDD2BB8/image-size/large?v=v2&amp;amp;px=999" title="online CRC calculation.png" alt="online CRC calculation.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can also get the same result from K60 running crc example in SDK_2.2_TWR-K60D100M.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21308iFE7408E54CDC7C6B/image-size/large?v=v2&amp;amp;px=999" title="crc example result.png" alt="crc example result.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 09:01:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CRC-bytewise-vs-wordwise-different-results/m-p/752167#M45825</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-05-16T09:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: CRC: bytewise vs. wordwise different results</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CRC-bytewise-vs-wordwise-different-results/m-p/752168#M45826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;wordwise calculation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you debug that example, you can see the value write into CRC_DATA is 0x64636261&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21338iAC00A80DB6DCA2B3/image-size/large?v=v2&amp;amp;px=999" title="32-bit reads and writes.png" alt="32-bit reads and writes.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;bytewise calculation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;base-&amp;gt;ACCESS8BIT.DATALL = *data;&lt;/P&gt;&lt;P&gt;input a(0x61)&lt;/P&gt;&lt;P&gt;input b(0x62)&lt;/P&gt;&lt;P&gt;input c(0x63)&lt;/P&gt;&lt;P&gt;input d(0x64)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 09:13:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CRC-bytewise-vs-wordwise-different-results/m-p/752168#M45826</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-06-14T09:13:30Z</dc:date>
    </item>
  </channel>
</rss>

