<?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 Mfgtool2 -noui process needs to be killed when done in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Mfgtool2-noui-process-needs-to-be-killed-when-done/m-p/780495#M121272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the command line interface of MfgTool2 to program an I.MX6Q processor. This is done in a Windows batch script to simplify our manufacturing process that also involves some other activities, like FPGA configuration.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The Platform, Profile and Variable settings are fetched from cfg.ini and the command only contains the -l switch to select the List (activity) from the profile ucl2.xml:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt; Mfgtool2 -noui -l "bootstrap_spi-to-emmc"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The problem is that the Mfgtool2 process, that is started and executed correctly from the above statement, doesn't terminate when the activity is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the only thing I can do is to set a timeout at an approximate time and then kill the process:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt; Mfgtool2 -noui -l "bootstrap_spi-to-emmc"&lt;/P&gt;&lt;P&gt;&amp;gt; timeout /t 70&lt;/P&gt;&lt;P&gt;&amp;gt; taskkill /f /im "Mfgtool2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why Mfgtool2 doesn't terminate when done?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For some reason I cannot fetch the output generated by MfgTool. Even if redirecting STDOUT and STDERR.&lt;/P&gt;&lt;P&gt;So my only chance to improve the script is to parse the generated logfile "MfgTool.log" to see if the command was successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fur sure, I cannot be the only one requesting a descent manufacturing tool that can be used in a Windows batch script.&lt;/P&gt;&lt;P&gt;What am I missing? Is there some other clever way or tool that can be used to configure the board in the factory.&lt;/P&gt;&lt;P&gt;I am constrained to use only the USB interface as programming interface of the i.MX6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2018 12:26:11 GMT</pubDate>
    <dc:creator>MagnusPersson</dc:creator>
    <dc:date>2018-01-11T12:26:11Z</dc:date>
    <item>
      <title>Mfgtool2 -noui process needs to be killed when done</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mfgtool2-noui-process-needs-to-be-killed-when-done/m-p/780495#M121272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the command line interface of MfgTool2 to program an I.MX6Q processor. This is done in a Windows batch script to simplify our manufacturing process that also involves some other activities, like FPGA configuration.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The Platform, Profile and Variable settings are fetched from cfg.ini and the command only contains the -l switch to select the List (activity) from the profile ucl2.xml:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt; Mfgtool2 -noui -l "bootstrap_spi-to-emmc"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The problem is that the Mfgtool2 process, that is started and executed correctly from the above statement, doesn't terminate when the activity is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the only thing I can do is to set a timeout at an approximate time and then kill the process:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt; Mfgtool2 -noui -l "bootstrap_spi-to-emmc"&lt;/P&gt;&lt;P&gt;&amp;gt; timeout /t 70&lt;/P&gt;&lt;P&gt;&amp;gt; taskkill /f /im "Mfgtool2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why Mfgtool2 doesn't terminate when done?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For some reason I cannot fetch the output generated by MfgTool. Even if redirecting STDOUT and STDERR.&lt;/P&gt;&lt;P&gt;So my only chance to improve the script is to parse the generated logfile "MfgTool.log" to see if the command was successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fur sure, I cannot be the only one requesting a descent manufacturing tool that can be used in a Windows batch script.&lt;/P&gt;&lt;P&gt;What am I missing? Is there some other clever way or tool that can be used to configure the board in the factory.&lt;/P&gt;&lt;P&gt;I am constrained to use only the USB interface as programming interface of the i.MX6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 12:26:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mfgtool2-noui-process-needs-to-be-killed-when-done/m-p/780495#M121272</guid>
      <dc:creator>MagnusPersson</dc:creator>
      <dc:date>2018-01-11T12:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mfgtool2 -noui process needs to be killed when done</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mfgtool2-noui-process-needs-to-be-killed-when-done/m-p/780496#M121273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In next release this issue should be fixed. Now you need to use the workaround you noted.&lt;BR /&gt;Sorry for the inconvenience. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&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>Sat, 28 Apr 2018 06:20:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mfgtool2-noui-process-needs-to-be-killed-when-done/m-p/780496#M121273</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2018-04-28T06:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mfgtool2 -noui process needs to be killed when done</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mfgtool2-noui-process-needs-to-be-killed-when-done/m-p/780497#M121274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to see if the standalone sb_loader.exe will do what you want. I believe it comes with the mfg tools these days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 16:04:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mfgtool2-noui-process-needs-to-be-killed-when-done/m-p/780497#M121274</guid>
      <dc:creator>andrewdyer</dc:creator>
      <dc:date>2018-04-30T16:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mfgtool2 -noui process needs to be killed when done</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mfgtool2-noui-process-needs-to-be-killed-when-done/m-p/780498#M121275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;Did you manage to find a way to close the CLI after the&amp;nbsp; image has been updated, other than killing the task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 10:19:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mfgtool2-noui-process-needs-to-be-killed-when-done/m-p/780498#M121275</guid>
      <dc:creator>dmurji</dc:creator>
      <dc:date>2019-03-08T10:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mfgtool2 -noui process needs to be killed when done</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mfgtool2-noui-process-needs-to-be-killed-when-done/m-p/780499#M121276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear VIctor,&lt;BR /&gt;&lt;BR /&gt;I am running into the same problem updating my imx6. I run the MFGTool2.exe -noui, and after it finishes it does not close. I see you mention this is supposed to be patched, perhaps you can share the link where I can get the new version?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 14:14:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mfgtool2-noui-process-needs-to-be-killed-when-done/m-p/780499#M121276</guid>
      <dc:creator>a_cace</dc:creator>
      <dc:date>2019-08-22T14:14:52Z</dc:date>
    </item>
  </channel>
</rss>

