<?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: Post-build steps triggering too early in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1290712#M7566</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/159987"&gt;@jiri_kral&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;After migrating to S32DS 3.4 the bug is still not fixed. The Tool Chain Editor displays the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="roy_vanlierop_0-1623323416631.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146825i5AAD6E529F256C7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="roy_vanlierop_0-1623323416631.png" alt="roy_vanlierop_0-1623323416631.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a new project, nothing changed.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jun 2021 11:10:47 GMT</pubDate>
    <dc:creator>roy_vanlierop</dc:creator>
    <dc:date>2021-06-10T11:10:47Z</dc:date>
    <item>
      <title>Post-build steps triggering too early</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1275704#M7480</link>
      <description>&lt;P&gt;I'm trying to fix the failed implementation of generating s-records by adding my own build-step.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After building the application, the generated .srec file should be automatically aligned by using the srec_cat tool:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="roy_vanlierop_0-1620829864121.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/144575i60D95B6F022D89D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="roy_vanlierop_0-1620829864121.png" alt="roy_vanlierop_0-1620829864121.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This "Post" build executes before the generation of the needed Srecords file. Thus causing the srec_cat executable too fail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="roy_vanlierop_0-1620830355797.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/144580i5101C266939489F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="roy_vanlierop_0-1620830355797.png" alt="roy_vanlierop_0-1620830355797.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I get a work-around for this? Can I "Invoke" my own executable like Objcopy is invoked?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 14:39:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1275704#M7480</guid>
      <dc:creator>roy_vanlierop</dc:creator>
      <dc:date>2021-05-12T14:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Post-build steps triggering too early</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1275756#M7481</link>
      <description>&lt;P&gt;Found a workaround by abusing the "Print Size" feature:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="roy_vanlierop_0-1620835444674.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/144588i71577E000FDC2921/image-size/large?v=v2&amp;amp;px=999" role="button" title="roy_vanlierop_0-1620835444674.png" alt="roy_vanlierop_0-1620835444674.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 16:04:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1275756#M7481</guid>
      <dc:creator>roy_vanlierop</dc:creator>
      <dc:date>2021-05-12T16:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Post-build steps triggering too early</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1275781#M7482</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;this is known issue - but I think that it is already fixed in S32DS v3.4. So, the issue is that post build command is called right after .elf file is produced. And other tools (like .srec output and size) is called after post build step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a more clean workaround you can create some .bat file (executed as a postbuild step) which creates .srec file from .elf and you can perform your srec_cat steps on that file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jiri&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 16:37:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1275781#M7482</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2021-05-12T16:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Post-build steps triggering too early</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1279043#M7521</link>
      <description>&lt;P&gt;It's too bad the S32DS doesn't support the S32K microcontrollers. When will S32K DS for Arm be updated?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 14:29:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1279043#M7521</guid>
      <dc:creator>roy_vanlierop</dc:creator>
      <dc:date>2021-05-19T14:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Post-build steps triggering too early</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1290712#M7566</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/159987"&gt;@jiri_kral&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;After migrating to S32DS 3.4 the bug is still not fixed. The Tool Chain Editor displays the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="roy_vanlierop_0-1623323416631.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146825i5AAD6E529F256C7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="roy_vanlierop_0-1623323416631.png" alt="roy_vanlierop_0-1623323416631.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a new project, nothing changed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 11:10:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1290712#M7566</guid>
      <dc:creator>roy_vanlierop</dc:creator>
      <dc:date>2021-06-10T11:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Post-build steps triggering too early</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1291198#M7573</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I checked the ticket related to Post build steps - and the resolution is that this is correct behavior. The logic behind is that product of build is .elf file (or .a archive - depends on project type). After that is called user post build step and then are called external tools selected by user -&amp;gt; Print size/Create flash image/Create extended listing.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway - I tried reproduce the error message in toolchain editor - but no success. How did you get this error?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 07:59:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1291198#M7573</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2021-06-11T07:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Post-build steps triggering too early</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1291242#M7575</link>
      <description>&lt;P&gt;Hello Jiri,&lt;BR /&gt;&lt;BR /&gt;It's too bad that this is desired/intended behavior. For anyone who comes after me and want to modify s-records in the Post-Build step:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;${cross_prefix}${cross_objcopy}${cross_suffix} -O srec  ${ProjName}.elf tmp.srec; "${ProjDirPath}/Tools/srec_cat.exe" tmp.srec -fill 0x00 -within tmp.srec -range-padding 256 -address-length=4 -obs=32 -o aligned_${ProjName}.srec;rm tmp.srec&lt;/LI-CODE&gt;&lt;P&gt;This three step command calls the build-in ObjCopy instance, creates a fresh S-record and modifies it using srec_cat.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Tool Conflict error message came from a freshly installed S32DS 3.4 with a fresh new project. The error is visible in all my projects, even older projects. Project -&amp;gt; Properties -&amp;gt; C/C++ Build -&amp;gt; Tool Chain Editor -&amp;gt; Select Tools.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="roy_vanlierop_0-1623401943456.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146903i2751AC6E46A4CD55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="roy_vanlierop_0-1623401943456.png" alt="roy_vanlierop_0-1623401943456.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 08:59:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Post-build-steps-triggering-too-early/m-p/1291242#M7575</guid>
      <dc:creator>roy_vanlierop</dc:creator>
      <dc:date>2021-06-11T08:59:22Z</dc:date>
    </item>
  </channel>
</rss>

