<?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: Problem with internal builder in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Problem-with-internal-builder/m-p/1869563#M9801</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your useful article.&lt;/P&gt;&lt;P&gt;In your article you say "&lt;SPAN&gt;One solution is to escape such characters&lt;/SPAN&gt;". This would be the best solution for me, but I don't know how to do it. Can you give me some advice about it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2024 09:10:21 GMT</pubDate>
    <dc:creator>biafra</dc:creator>
    <dc:date>2024-05-21T09:10:21Z</dc:date>
    <item>
      <title>Problem with internal builder</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Problem-with-internal-builder/m-p/1868802#M9793</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm facing a problem with MCUXpresso 11.9.1.&lt;/P&gt;&lt;P&gt;For some reasons in building my project I need to do some other things when I compile, so I created a script that do all I need (build + other things).&lt;/P&gt;&lt;P&gt;In the MCU C Compiler section I set my script as command builder. The script is located in the same folder as the project:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="biafra_0-1716198206882.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279599i1B3C70ECD988024C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="biafra_0-1716198206882.png" alt="biafra_0-1716198206882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My scripts is working fine: when I build my project using the &lt;STRONG&gt;&lt;U&gt;external builder&lt;/U&gt;&lt;/STRONG&gt;, every project file is built using my script and the linker process is executed fine.&lt;/P&gt;&lt;P&gt;The problem arises when I need to build a single file: I launch the Build Selected File(s) command and I receive some error messages.&lt;/P&gt;&lt;P&gt;The first time I launched the command the message was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Info: Internal Builder is used for build
"..\\mybuild.sh" -D__REDLIB__ [...] -o "source\\MIMXRT1064_Project.o" "..\\source\\MIMXRT1064_Project.c" 
Cannot run program "..\mybuild.sh": Launching failed

Error: Program "..\mybuild.sh" not found in PATH
PATH=[C:\nxp\MCUXpressoIDE_11.9.1_2170\ide\plugins\com.nxp.mcuxpresso.tools.win32_11.9.1.202402080819\tools\bin;C:\nxp\MCUXpressoIDE_11.9.1_2170\ide\plugins\com.nxp.mcuxpresso.tools.win32_11.9.1.202402080819\buildtools\bin;C:\nxp\MCUXpressoIDE_11.9.1_2170\ide\plugins\com.nxp.mcuxpresso.tools.bin.win32_11.9.1.202402080819\binaries\;C:/nxp/MCUXpressoIDE_11.9.1_2170/ide//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.7.v20230425-1502/jre/bin/server;C:/nxp/MCUXpressoIDE_11.9.1_2170/ide//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.7.v20230425-1502/jre/bin; [...] C:\nxp\MCUXpressoIDE_11.9.1_2170\ide]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reading the error message I've found that the script folder wasn't in the PATH. So I modified the PATH environment variable to include that folder:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="biafra_5-1716199414759.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279608i1484545755FD98DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="biafra_5-1716199414759.png" alt="biafra_5-1716199414759.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="biafra_4-1716199393840.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279607i13555976FB288E70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="biafra_4-1716199393840.png" alt="biafra_4-1716199393840.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With these settings I receive a different message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Info: Internal Builder is used for build
"C:\\...\\MIMXRT1064_Project\\mybuild.sh" -D__REDLIB__ [...] -o "source\\MIMXRT1064_Project.o" "..\\source\\MIMXRT1064_Project.c" 
Cannot run program "C:\...\MIMXRT1064_Project\mybuild.sh": Launching failed&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I receive the same error messages if I use the &lt;STRONG&gt;&lt;U&gt;internal bulder&lt;/U&gt;&lt;/STRONG&gt; in the global build process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it seems that the problem is bound to the internal builder.&lt;/P&gt;&lt;P&gt;Does anyone can help me in making the single file build process work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 10:12:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Problem-with-internal-builder/m-p/1868802#M9793</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2024-05-20T10:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with internal builder</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Problem-with-internal-builder/m-p/1869510#M9800</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/65478"&gt;@biafra&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;this is how I use it:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2024/05/21/building-eclipse-projects-with-custom-external-shell-scripts/" target="_blank"&gt;https://mcuoneclipse.com/2024/05/21/building-eclipse-projects-with-custom-external-shell-scripts/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this helps?&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 08:23:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Problem-with-internal-builder/m-p/1869510#M9800</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2024-05-21T08:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with internal builder</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Problem-with-internal-builder/m-p/1869563#M9801</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your useful article.&lt;/P&gt;&lt;P&gt;In your article you say "&lt;SPAN&gt;One solution is to escape such characters&lt;/SPAN&gt;". This would be the best solution for me, but I don't know how to do it. Can you give me some advice about it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 09:10:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Problem-with-internal-builder/m-p/1869563#M9801</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2024-05-21T09:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with internal builder</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Problem-with-internal-builder/m-p/1917150#M9938</link>
      <description>&lt;P&gt;Hi, I have had the same problem with this version of MCUXpresso (ie V11.9.1). Perhaps this exists with others versions too (???). Anyway, I have 6 commands as part of my Post-build steps. These all worked fine when I was using the External Builder. However, I had to move to the Internal Builder due to a requirement to include a code coverage tool. When I hopped to the Internal builder my source compiled and linked OK but the post build steps failed. I saw a "Problem Occurred" popup with an "Empty Command" comment in the details. I tracked that to the post build process and found that a single command would work fine but any further commands would cause an error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I played with the definition of the commands and what I found was that multiple commands are auto separated by the IDE with semi-colons. However, the separation is actually space + semi-colon + space i.e. " ; ". These extra spaces seem to cause a problem with the internal builder. Perhaps they are being seen as "Empty Commands" and hence the error.&lt;/P&gt;&lt;P&gt;So, my solution was to just create a single long line of my commands in a text editor with just the semi-colon between them. Then cut and paste this into the Post-build steps edit window as a single line. This stops the IDE from adding the extra spaces and hence stops the Empty Command issue.&lt;/P&gt;&lt;P&gt;Obviously there is a problem with the IDE and/or builder but at least this works for me.&lt;/P&gt;&lt;P&gt;As mentioned earlier the external builder was fine with the spaces.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 11:34:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Problem-with-internal-builder/m-p/1917150#M9938</guid>
      <dc:creator>Martin_McKelvie</dc:creator>
      <dc:date>2024-07-25T11:34:50Z</dc:date>
    </item>
  </channel>
</rss>

