<?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: Unable to find flashloader script init_flashloader_win.bat in MCUXpresso Secure Provisioning Tool</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064427#M596</link>
    <description>&lt;P&gt;Hi Aaron,&lt;/P&gt;
&lt;P&gt;could you confirm what version of the tool are you using?&lt;/P&gt;
&lt;P&gt;Could you start the tool with parameter -v (securep.exe -v) and check the console? There should be additional details about the problem. If this does not help you kindly share the console output.&lt;/P&gt;
&lt;P&gt;Also I'd recommend to re-install the tool. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Mar 2025 07:14:21 GMT</pubDate>
    <dc:creator>marek-trmac</dc:creator>
    <dc:date>2025-03-19T07:14:21Z</dc:date>
    <item>
      <title>Unable to find flashloader script init_flashloader_win.bat</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064043#M594</link>
      <description>&lt;P&gt;I'm unable to use the SEC to do things like check OTP fuses, write an image, check flashloader... whenever these operations try to communicate with the flashloader the SEC will close instantly.&lt;/P&gt;&lt;P&gt;When checking the log, it looks like it tries to find the script "\secure_provisioning\gen_scripts\init_flashloader_win.bat" however this file doesn't exist in my installation and I'm not sure why?&lt;/P&gt;&lt;P&gt;Am I missing a step to build this?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 20:39:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064043#M594</guid>
      <dc:creator>schafbo</dc:creator>
      <dc:date>2025-03-18T20:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find flashloader script init_flashloader_win.bat</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064080#M595</link>
      <description>&lt;P&gt;Hi Aaron,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;could you please share more details, may be the whole log before it fails?&lt;/LI&gt;
&lt;LI&gt;Could you confirm whether you have "space" or other special character ()[]; in the workspace path? Please try create path without spaces and only with english alphabetical letters to limit the potential issues.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;however this file doesn't exist in my installation and I'm not sure why?&lt;/PRE&gt;
&lt;P&gt;This file is created in your SEC tool workspace.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Libor&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 21:33:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064080#M595</guid>
      <dc:creator>liborukropec</dc:creator>
      <dc:date>2025-03-18T21:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find flashloader script init_flashloader_win.bat</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064427#M596</link>
      <description>&lt;P&gt;Hi Aaron,&lt;/P&gt;
&lt;P&gt;could you confirm what version of the tool are you using?&lt;/P&gt;
&lt;P&gt;Could you start the tool with parameter -v (securep.exe -v) and check the console? There should be additional details about the problem. If this does not help you kindly share the console output.&lt;/P&gt;
&lt;P&gt;Also I'd recommend to re-install the tool. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 07:14:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064427#M596</guid>
      <dc:creator>marek-trmac</dc:creator>
      <dc:date>2025-03-19T07:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find flashloader script init_flashloader_win.bat</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064778#M597</link>
      <description>&lt;P&gt;Marek,&lt;/P&gt;&lt;P&gt;Here is the version number and file locations. They are the expected files, but no mention of the init_flashloader_win script&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 14:47:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064778#M597</guid>
      <dc:creator>schafbo</dc:creator>
      <dc:date>2025-03-19T14:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find flashloader script init_flashloader_win.bat</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064785#M598</link>
      <description>&lt;P&gt;Libor,&lt;/P&gt;&lt;P&gt;Workspace path is C:\Users\username\secure_provisioning (I believe this is the default path)&lt;/P&gt;&lt;P&gt;Log when checking OTP fuses:&lt;/P&gt;&lt;P&gt;SDPHOST read 0x400d8262 2 &amp;gt;&amp;gt;&amp;gt; [108, 0]&lt;BR /&gt;Executing script C:\Users\username\secure_provisioning\gen_scripts\init_flashloader_win.bat&lt;BR /&gt;ERROR: Script failed with return code: [2]ERROR&lt;BR /&gt;### SCRIPT: Starting flashloader: C:\Users\username\secure_provisioning\gen_scripts\init_flashloader_win.bat&lt;BR /&gt;### Parse input arguments ###&lt;BR /&gt;### Check presence of FlashLoader ###&lt;/P&gt;&lt;P&gt;### RESULT of the script `Starting flashloader`: Failure (return code = [2]ERROR)&lt;BR /&gt;Status of the operation: Failure: Starting flashloader&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Writing an image:&lt;/P&gt;&lt;P&gt;##########################################################################################################&lt;BR /&gt;Start flashloader - operation started at 2025-03-18 14:39:50&lt;BR /&gt;##########################################################################################################&lt;BR /&gt;Executing script C:\Users\username\secure_provisioning\gen_scripts\init_flashloader_win.bat&lt;BR /&gt;ERROR: Script failed with return code: [2]ERROR&lt;BR /&gt;### SCRIPT: Starting flashloader: C:\Users\username\secure_provisioning\gen_scripts\init_flashloader_win.bat&lt;BR /&gt;### Parse input arguments ###&lt;BR /&gt;### Check presence of FlashLoader ###&lt;/P&gt;&lt;P&gt;### RESULT of the script `Starting flashloader`: Failure (return code = [2]ERROR)&lt;BR /&gt;Status of the operation: Failure: Starting flashloader&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 14:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064785#M598</guid>
      <dc:creator>schafbo</dc:creator>
      <dc:date>2025-03-19T14:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find flashloader script init_flashloader_win.bat</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064787#M599</link>
      <description>&lt;P&gt;Hi Aaron,&lt;/P&gt;
&lt;P&gt;I do not see any problem in the log. What action were you doing in GUI? Have you seen any error in the GUI?&lt;/P&gt;
&lt;P&gt;It would be good to report the problem more consistently so we can reproduce it. Is your board connected prior the operation? Can you start with connection configuration in "main menu &amp;gt; Target &amp;gt; Connection" and try to use "Test connection"? Does this work? Does build bootable image work?&lt;/P&gt;
&lt;P&gt;We would need more context to be able to help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you able to describe a step by step process how to reproduce the issue, for example:&lt;/P&gt;
&lt;P&gt;- create workspace for RT117x&lt;BR /&gt;&lt;SPAN&gt;- assign any source image&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- build&lt;BR /&gt;- connect the board&lt;BR /&gt;- switch board to ISP mode and reset&lt;BR /&gt;- hit Image Write button&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- observation: error, see log attached, and screenshot from GUI&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 15:07:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064787#M599</guid>
      <dc:creator>marek-trmac</dc:creator>
      <dc:date>2025-03-19T15:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find flashloader script init_flashloader_win.bat</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064905#M600</link>
      <description>&lt;P&gt;There are no issues with when executing&amp;nbsp;&lt;SPAN&gt;securep.exe -v, but these do not include the script init_flashloader_win.bat&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please see the attached images. I am able to connect and build an image, but I am not able to write the image. I believe this is because the SEC is looking for the init_flashload_win.bat file but its missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have reinstalled the SEC in Administrator mode but the issue still persists.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 18:42:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064905#M600</guid>
      <dc:creator>schafbo</dc:creator>
      <dc:date>2025-03-19T18:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find flashloader script init_flashloader_win.bat</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064916#M601</link>
      <description>&lt;P&gt;Hi Aaron,&lt;/P&gt;
&lt;P&gt;so, summary of you issue:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;you can create workspace for i.MX&amp;nbsp;RT106x processor&lt;/LI&gt;
&lt;LI&gt;you can build unsigned image&lt;/LI&gt;
&lt;LI&gt;you can connect the board&lt;/LI&gt;
&lt;LI&gt;when you hit Write Image button, it fails because the flashloader cannot be initialized&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Is that right?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You said init_flashloader script is missing in your workspace, but on the screenshot named "&lt;SPAN&gt;no flashloader edit.png"&amp;nbsp;&lt;/SPAN&gt;I can see the script was started and it does some actions (for example Parse arguments). Also during the build I can see the flashloader app itself is prepared to your workspace.&lt;/P&gt;
&lt;P&gt;Based on this info, I suppose you have some custom hardware and the flashloader does not start on your hardware. Can you please doublecheck the script and confirm?&lt;/P&gt;
&lt;P&gt;I think the init_flashloader contains echo off, so we do not see all details what's executed. May be, you can comment-out the echo off and look at the details.&lt;/P&gt;
&lt;P&gt;BTW: Still not confirmed, but I suppose you are using latest version of the tool.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 18:56:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064916#M601</guid>
      <dc:creator>marek-trmac</dc:creator>
      <dc:date>2025-03-19T18:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find flashloader script init_flashloader_win.bat</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064932#M602</link>
      <description>&lt;P&gt;Marek, please see the following responses to your comment:&lt;/P&gt;&lt;P&gt;so, summary of you issue:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;you can create workspace for i.MX&amp;nbsp;RT106x processor&lt;/LI&gt;&lt;LI&gt;you can build unsigned image&lt;/LI&gt;&lt;LI&gt;you can connect the board&lt;/LI&gt;&lt;LI&gt;when you hit Write Image button, it fails because the flashloader cannot be initialized&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is that right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Yes this is correct.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;You said init_flashloader script is missing in your workspace, but on the screenshot named "&lt;SPAN&gt;no flashloader edit.png"&amp;nbsp;&lt;/SPAN&gt;I can see the script was started and it does some actions (for example Parse arguments). Also during the build I can see the flashloader app itself is prepared to your workspace.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;The log may say that it is "Executing script" and parsing arguments however I am sure there is no script at the location 'secure_provisioning\gen_scripts\init_flashloader_win.bat'. Also, there is an error with return code 2 immediately after this statement. Maybe its possible the log would print that the script is executing even if the file didn't exist?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Based on this info, I suppose you have some custom hardware and the flashloader does not start on your hardware. Can you please doublecheck the script and confirm?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Yes it is custom hardware. It does look like the flashloader is not starting. I'm able to program the board using MCUXpresso... not sure if this would involve the flashloader or not...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I think the init_flashloader contains echo off, so we do not see all details what's executed. May be, you can comment-out the echo off and look at the details.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;I don't have this file so I can't remove the echo off.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;BTW: Still not confirmed, but I suppose you are using latest version of the tool.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;It's version 10.0.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 19:29:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064932#M602</guid>
      <dc:creator>schafbo</dc:creator>
      <dc:date>2025-03-19T19:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to find flashloader script init_flashloader_win.bat</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064968#M603</link>
      <description>&lt;P&gt;Hi Aaron&lt;/P&gt;
&lt;P&gt;I tried same use case on my computer, and the script is created. You can identify the script the following way: open the workspace, where flashloader failed, and go to "main menu &amp;gt; Target &amp;gt; Connection" and hit the black button on the bottom of the dialog to open terminal&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marektrmac_0-1742416510833.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/328886iD03DEEAE45C8BDB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marektrmac_0-1742416510833.png" alt="marektrmac_0-1742416510833.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This will start terminal in your workspace. In the terminal run the following commands:&lt;/P&gt;
&lt;PRE&gt;cd gen_scripts&lt;BR /&gt;dir&lt;/PRE&gt;
&lt;P&gt;On my computer the script was created in this folder. I do not have any board right now, so the script fails with the following error:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marektrmac_2-1742417321640.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/328891i879C30BFC1F950ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marektrmac_2-1742417321640.png" alt="marektrmac_2-1742417321640.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, during the write operation, (securep.exe -v), the console contains:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marektrmac_1-1742417082724.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/328890i7445A542B5D732BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marektrmac_1-1742417082724.png" alt="marektrmac_1-1742417082724.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It would be good if you try the same and share the console output AFTER you reproduce the problem. Console content you sent previously contains only build operation, while the log from GUI shows the init_flashloader script was executed.&lt;/P&gt;
&lt;P&gt;Also kindly confirm whether you could locate the script in your workspace.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 20:51:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Unable-to-find-flashloader-script-init-flashloader-win-bat/m-p/2064968#M603</guid>
      <dc:creator>marek-trmac</dc:creator>
      <dc:date>2025-03-19T20:51:34Z</dc:date>
    </item>
  </channel>
</rss>

