<?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: srec_cat crc kboot problem in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/srec-cat-crc-kboot-problem/m-p/754264#M46002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy,&lt;/P&gt;&lt;P&gt;address ranges in srec_cat are not including the 'end' address of the range. So I feel you might want to use 0x20F08 instead?&lt;/P&gt;&lt;P&gt;Same for the fill command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2018 18:56:15 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2018-04-02T18:56:15Z</dc:date>
    <item>
      <title>srec_cat crc kboot problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/srec-cat-crc-kboot-problem/m-p/754263#M46001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use srec_cat tool to calculate the crc for my bin file, in order to use it with the blhost.&lt;/P&gt;&lt;P&gt;I've found &lt;A href="https://mcuoneclipse.com/2018/03/05/tutorial-crc32-checksum-with-the-kboot-bootloader/comment-page-1/#comment-110578"&gt;this&lt;/A&gt; link, by &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/BlackNight"&gt;BlackNight&lt;/A&gt;‌ which explains all very nicely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, when trying to implement the srec_cat, I can't seem to get the same crc as calculated by KinetisFlashTool (which is correct in KinetisFlashTool, as kboot does recognize it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My application starts from 0xa000.&lt;/P&gt;&lt;P&gt;I've&amp;nbsp;tried:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;srec_info myAppCode.srec&lt;/EM&gt; and received:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Format: Motorola S-Record&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Header: "myAppCode.srec"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Execution Start Address: 0000A7AD&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Data: 00A000 - 00A3DF&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; 00A400 - 020F07&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,&amp;nbsp;I'm sending command to get the crc value:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;srec_cat myAppCode.bin -binary -fill 0xff&amp;nbsp;&amp;nbsp;0xa000 0x020F07 -crop &lt;STRONG&gt;0xa000 0x020F07&lt;/STRONG&gt;-Bit_Reverse -CRC32LE 0xffca0 -Bit_Reverse&amp;nbsp;-XOR 0xff -crop 0xffca0 0xffca4-Output - -hex_dump&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but getting different values than KinetisFlashTool.&lt;/P&gt;&lt;P&gt;I've tried changing the crop values but nothing helps.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 12:45:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/srec-cat-crc-kboot-problem/m-p/754263#M46001</guid>
      <dc:creator>roymessinger</dc:creator>
      <dc:date>2018-04-02T12:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: srec_cat crc kboot problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/srec-cat-crc-kboot-problem/m-p/754264#M46002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy,&lt;/P&gt;&lt;P&gt;address ranges in srec_cat are not including the 'end' address of the range. So I feel you might want to use 0x20F08 instead?&lt;/P&gt;&lt;P&gt;Same for the fill command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 18:56:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/srec-cat-crc-kboot-problem/m-p/754264#M46002</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2018-04-02T18:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: srec_cat crc kboot problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/srec-cat-crc-kboot-problem/m-p/754265#M46003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. I tried that already. Didn't help.&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 19:47:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/srec-cat-crc-kboot-problem/m-p/754265#M46003</guid>
      <dc:creator>roymessinger</dc:creator>
      <dc:date>2018-04-03T19:47:49Z</dc:date>
    </item>
  </channel>
</rss>

