<?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>MCUXpresso IDEのトピックRe: faulty SREC generation</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/faulty-SREC-generation/m-p/818332#M3036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are running "checksum" on the .srec file. Checksum only works on binary files. It is therefore checksum that is corrupting your SREC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2018 08:08:34 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2018-10-03T08:08:34Z</dc:date>
    <item>
      <title>faulty SREC generation</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/faulty-SREC-generation/m-p/818331#M3035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to generate a SREC as a post build step, but I'm getting non-hexadecimal characters in the output.&amp;nbsp; This is using a standard "hello world" example.&amp;nbsp; The output of the first three lines of the SREC file say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S0160000726B5F68656C6C6F5F77ph�^6C642E7372656337&lt;BR /&gt;S1132000000002004123000011230000812C000085&lt;BR /&gt;S113201000000000000000000000000000000000BC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the first line; there is an aberrant 4-byte sequence&amp;nbsp;"ph&amp;lt;8e&amp;gt;^", that is, { 0x70, 0x68, 0x8e, 0x5e }.&amp;nbsp; Re-running the build gives the same exact output.&amp;nbsp; Changing the "managed linker script" options a bit (e.g., global data placement), I can vary the file output, but the aberrant sequence still shows up in the first line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The post-build steps I'm using are:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;arm-none-eabi-size "${BuildArtifactFileName}"&lt;BR /&gt;arm-none-eabi-objcopy -v -O srec "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.srec"&lt;BR /&gt;checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.srec"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example I'm compiling is a generic "hello world" for MIMXRT1052xxxxB.&amp;nbsp; Just to check my sanity; I've generated a new very generic project for the same board so that the project name is now "MIMXRT1052xxxxB_Project", and choosing no special options.&amp;nbsp; I've modified the post-build steps as above.&amp;nbsp; This time, I get a slightly different sequence of aberrant bytes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;S01F00004D494D58525431303532z~��7878425F50726F6A6563742E7372656304&lt;BR /&gt;S3152020000000002420FD022020450320202D1B202017&lt;BR /&gt;S31520200010000000000000000000000000000000009A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, the aberrant sequence is { 0x7a, 0x7e, 0x99, 0x81 }.&amp;nbsp; I'm attaching a few files for this latter case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above cases were&amp;nbsp;generated using MCUXpresso IDE v10.2.1 build 795, running on Windows 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm considering doing a de-install + re-install of the IDE, or switching to a different machine altogether, running macOS or Linux.&amp;nbsp; But I wonder if anyone else is seeing what I'm seeing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 22:05:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/faulty-SREC-generation/m-p/818331#M3035</guid>
      <dc:creator>rick_kwan</dc:creator>
      <dc:date>2018-10-02T22:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: faulty SREC generation</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/faulty-SREC-generation/m-p/818332#M3036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are running "checksum" on the .srec file. Checksum only works on binary files. It is therefore checksum that is corrupting your SREC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 08:08:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/faulty-SREC-generation/m-p/818332#M3036</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2018-10-03T08:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: faulty SREC generation</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/faulty-SREC-generation/m-p/818333#M3037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep. That was the problem.&amp;nbsp; I didn't realize that 'checksum' was actually writing on top of the file.&amp;nbsp; Not like the Linux 'sum', 'md5sum', and other variants that I am used to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 18:32:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/faulty-SREC-generation/m-p/818333#M3037</guid>
      <dc:creator>rick_kwan</dc:creator>
      <dc:date>2018-10-03T18:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: faulty SREC generation</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/faulty-SREC-generation/m-p/818334#M3038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;In addition, this is the example of how to use post-build.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2017/03/29/mcuxpresso-ide-s-record-intel-hex-and-binary-files/" title="https://mcuoneclipse.com/2017/03/29/mcuxpresso-ide-s-record-intel-hex-and-binary-files/"&gt;MCUXpresso IDE: S-Record, Intel Hex and Binary Files | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides, MCUXpresso IDE integrates Binary Utilities, we can use it to generate hex/bin/s-record directly.&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/74058i6CDB7458A931E8D8/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;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&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>Mon, 08 Oct 2018 06:49:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/faulty-SREC-generation/m-p/818334#M3038</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2018-10-08T06:49:08Z</dc:date>
    </item>
  </channel>
</rss>

