<?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>CodeWarrior for MCU中的主题 Re: SREC file detects like Binary/Raw format</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SREC-file-detects-like-Binary-Raw-format/m-p/1066187#M15423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evgeni,&lt;/P&gt;&lt;P&gt;I think you have written the content of your file in a wrong way. I suggest that you check/read it with srec_cat (see &lt;A class="link-titled" href="https://mcuoneclipse.com/2019/07/02/generating-intel-hex-files-with-a-given-length-using-srec_cat/" title="https://mcuoneclipse.com/2019/07/02/generating-intel-hex-files-with-a-given-length-using-srec_cat/"&gt;Generating Intel Hex Files with a given Length using srec_cat | MCU on Eclipse&lt;/A&gt; ) or check it with srec_info (see &lt;A class="link-titled" href="https://mcuoneclipse.com/2015/04/26/crc-checksum-generation-with-srecord-tools-for-gnu-and-eclipse/" title="https://mcuoneclipse.com/2015/04/26/crc-checksum-generation-with-srecord-tools-for-gnu-and-eclipse/"&gt;CRC Checksum Generation with ‘SRecord’ Tools for GNU and Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;P&gt;Other than that: post your file here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2020 18:33:49 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2020-07-20T18:33:49Z</dc:date>
    <item>
      <title>SREC file detects like Binary/Raw format</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SREC-file-detects-like-Binary-Raw-format/m-p/1066186#M15422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am working with Kinetis K21FN120 MCU.&lt;/P&gt;&lt;P&gt;I wrote a C Sharp language program to create .srec files. This is a necessity for our project. All conditions, such as file format, checksum calculation, addressing, were complied with according to the technical documentation of the Motorola file. Nevertheless, when I tried to write the .srec file built by my program through Freescale "Flash File To Target", Freescale cannot determine it as a Motorola S-Record file but sees it as Binary/Raw format.&lt;BR /&gt;I even tried to get the file generated by my program and copy it to a file generated from IAR, which was previously detected as Motorola S-Record file. After copying, the result is the same as with my file: it is seen as Binary/Raw, not Motorola S-Record. So I thought there was some kind of problem with encoding.&lt;BR /&gt;Please tell me, this is an ordinary text file with the extension .srec, encoded as UTF8. Where to look for an error?&lt;BR /&gt;Thanks&lt;BR /&gt;Evgeni&lt;span class="lia-inline-image-display-wrapper" image-alt="With IAR srec file.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116336iD6C97094BC6C48CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="With IAR srec file.png" alt="With IAR srec file.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="With my srec file.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116337iDEEBBEF39515C0BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="With my srec file.png" alt="With my srec file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 16:07:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SREC-file-detects-like-Binary-Raw-format/m-p/1066186#M15422</guid>
      <dc:creator>evgenik</dc:creator>
      <dc:date>2020-07-20T16:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: SREC file detects like Binary/Raw format</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SREC-file-detects-like-Binary-Raw-format/m-p/1066187#M15423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evgeni,&lt;/P&gt;&lt;P&gt;I think you have written the content of your file in a wrong way. I suggest that you check/read it with srec_cat (see &lt;A class="link-titled" href="https://mcuoneclipse.com/2019/07/02/generating-intel-hex-files-with-a-given-length-using-srec_cat/" title="https://mcuoneclipse.com/2019/07/02/generating-intel-hex-files-with-a-given-length-using-srec_cat/"&gt;Generating Intel Hex Files with a given Length using srec_cat | MCU on Eclipse&lt;/A&gt; ) or check it with srec_info (see &lt;A class="link-titled" href="https://mcuoneclipse.com/2015/04/26/crc-checksum-generation-with-srecord-tools-for-gnu-and-eclipse/" title="https://mcuoneclipse.com/2015/04/26/crc-checksum-generation-with-srecord-tools-for-gnu-and-eclipse/"&gt;CRC Checksum Generation with ‘SRecord’ Tools for GNU and Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;P&gt;Other than that: post your file here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 18:33:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SREC-file-detects-like-Binary-Raw-format/m-p/1066187#M15423</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-07-20T18:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: SREC file detects like Binary/Raw format</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SREC-file-detects-like-Binary-Raw-format/m-p/1066188#M15424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added both files for comparison. As you can see they are identical. But file from IAR is detected like Motorola S-Record file and file from my application is detected like Binary/Raw format file.&lt;BR /&gt;I have checked my file with srec_info and have received the next warning: "ignoring garbage lines". How can I found these lines? Why compare images found that both files are the same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 20:11:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SREC-file-detects-like-Binary-Raw-format/m-p/1066188#M15424</guid>
      <dc:creator>evgenik</dc:creator>
      <dc:date>2020-07-20T20:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: SREC file detects like Binary/Raw format</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SREC-file-detects-like-Binary-Raw-format/m-p/1066189#M15425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evgeni,&lt;/P&gt;&lt;P&gt;sorry, I did not realize that you already had provided the files.&lt;/P&gt;&lt;P&gt;I checked them, and the files are not the same.&lt;/P&gt;&lt;P&gt;You can easily see this with EHEP in Eclipse (&lt;A class="link-titled" href="https://mcuoneclipse.com/2012/04/02/5-best-eclipse-plugins-4-ehep/" title="https://mcuoneclipse.com/2012/04/02/5-best-eclipse-plugins-4-ehep/"&gt;5 Best Eclipse Plugins: #4 (EHEP) | MCU on Eclipse&lt;/A&gt; ):&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/116493i4B0D6CC1981463CB/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;So your generated files starts with binary data (EF BB BF) (Unicode byte order mark): simply store that file as a normal ASCII file instead.&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>Tue, 21 Jul 2020 14:47:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SREC-file-detects-like-Binary-Raw-format/m-p/1066189#M15425</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-07-21T14:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: SREC file detects like Binary/Raw format</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SREC-file-detects-like-Binary-Raw-format/m-p/1066190#M15426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich.&lt;/P&gt;&lt;P&gt;After making some changes in my program, when working with srec_info, I issued the same warning indicating the problematic line number. After a detailed analysis of this line, I found an error in my code and fixed it. Now my file is detected as a Motorola S-Record file.&lt;BR /&gt;Many thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2020 07:09:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SREC-file-detects-like-Binary-Raw-format/m-p/1066190#M15426</guid>
      <dc:creator>evgenik</dc:creator>
      <dc:date>2020-07-22T07:09:46Z</dc:date>
    </item>
  </channel>
</rss>

