<?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 load secure boot in MCUXpresso Secure Provisioning Tool</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/unable-to-load-secure-boot/m-p/2039633#M566</link>
    <description>I am also unable to successfully complete debug authentication:&lt;BR /&gt;&lt;BR /&gt;##########################################################################################################&lt;BR /&gt;Open a debug port - operation started at 2025-02-06 16:56:21&lt;BR /&gt;##########################################################################################################&lt;BR /&gt;Executing script C:\SecureProvisioningBuild2\debug_auth\open_debug_port.bat&lt;BR /&gt;ERROR: Script failed with return code: [2]ERROR&lt;BR /&gt;### SCRIPT: Open debug port: C:\SecureProvisioningBuild2\debug_auth\open_debug_port.bat&lt;BR /&gt;call "C:\nxp\MCUX_Provi_v10\bin\_internal\tools\spsdk\nxpdebugmbox.exe" -p 1.0 -i pyocd -s OSAYAQGQ auth -b 0 -c "C:\SecureProvisioningBuild2\debug_auth\debug_auth_cert.dc" -k "C:\SecureProvisioningBuild2\keys\debug_authentication_key_RSA_2048.pem"&lt;BR /&gt;WARNING:__main__:The -p/--protocol option is deprecated and will be removed in version 2.4. (1701ms since start, nxpdebugmbox.py:259)&lt;BR /&gt;WARNING:__main__:The Family is not specified. This is a new option that will be mandatory since SPSDK 2.4. Please update your scripts. (1701ms since start, nxpdebugmbox.py:279)&lt;BR /&gt;DeprecationWarning: The command 'auth' is deprecated.&lt;BR /&gt;# Interface Id Description&lt;BR /&gt;----------------------------------------------------------------------------&lt;BR /&gt;0 PyOCD OSAYAQGQ NXP Semiconductors LPC-LINK2 CMSIS-DAP V5.224&lt;BR /&gt;WARNING:spsdk.dat.debug_mailbox:The debug mailbox access port index is not specified, trying autodetection. (2396ms since start, debug_mailbox.py:194)&lt;BR /&gt;Debug Authentication ends without AHB access.&lt;BR /&gt;SPSDKAppError: Debug Mailbox authentication failed:&lt;BR /&gt;SPSDK: Problem with debug mailbox occurred: Access to AHB is not granted.&lt;BR /&gt;nxpdebugmbox failed&lt;BR /&gt;### RESULT of the script `Open debug port`: Failure (return code = [2]ERROR)&lt;BR /&gt;Status of the operation: Failure: Open debug port</description>
    <pubDate>Fri, 07 Feb 2025 01:09:03 GMT</pubDate>
    <dc:creator>NXPMike</dc:creator>
    <dc:date>2025-02-07T01:09:03Z</dc:date>
    <item>
      <title>unable to load secure boot</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/unable-to-load-secure-boot/m-p/2039631#M565</link>
      <description>&lt;P&gt;I have configured my LPC55S69-EVK board as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="post1.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322818i5DFEE5A9E7799AD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="post1.png" alt="post1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="post2.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322819i2E9625C187FEBD86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="post2.png" alt="post2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In addition I have configured:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;TrustZone disabled image&lt;/LI&gt;&lt;LI&gt;Authentication key: ROT1: IMG1_1&lt;/LI&gt;&lt;LI&gt;SBKEK: &amp;lt;random&amp;gt;&lt;/LI&gt;&lt;LI&gt;Boot: Signed&lt;/LI&gt;&lt;LI&gt;from: Onchip flash&lt;/LI&gt;&lt;LI&gt;LC: Development&lt;/LI&gt;&lt;LI&gt;TP: No TrustProvisioning&lt;/LI&gt;&lt;LI&gt;ROT1/2/3/4, IMG1_1/2_1/3_1/4_1, debug auth key and debug auth cert&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With these settings I have SEC (version 10.0) generate the following files (build image):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;image.sb&lt;/LI&gt;&lt;LI&gt;cfpa.bin&lt;/LI&gt;&lt;LI&gt;cmpa.bin&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I then enter ISP mode and use blhost (version 2.6.7) to flash the files:&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;ps&amp;gt; .\blhost.exe -u 0x1FC9,0x0021 write-memory 0x9de00 cfpa.bin&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Inject command 'write-memory'&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Preparing to send 512 (0x200) bytes to the target.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Successful generic response to command 'write-memory'&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;(1/1)100% Completed!&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Successful generic response to command 'write-memory'&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Response status = 0 (0x0) Success.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Wrote 512 of 512 bytes.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;ps&amp;gt; .\blhost.exe -u 0x1FC9,0x0021 write-memory 0x9e400 cmpa_sealed.bin&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Inject command 'write-memory'&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Preparing to send 512 (0x200) bytes to the target.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Successful generic response to command 'write-memory'&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;(1/1)100% Completed!&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Successful generic response to command 'write-memory'&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Response status = 0 (0x0) Success.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Wrote 512 of 512 bytes.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;ps&amp;gt; .\blhost.exe -u 0x1FC9,0x0021 -- receive-sb-file .\image.sb&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Inject command 'receive-sb-file'&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Preparing to send 12992 (0x32c0) bytes to the target.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Successful generic response to command 'receive-sb-file'&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;(1/1)16%usb hid detected receiver data abort&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Data phase write aborted by status 0x2712 kStatus_AbortDataPhase&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Possible JUMP or RESET command received.&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Response status = 10101 (0x2775) kStatusRomLdrSignature&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Wrote 2128 of 12992 bytes.&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I'm concerned about the errors that occur when I flash the .sb file and now my board is going straight to SPI mode and not running the image (which was working in "plain image" mode).&lt;/P&gt;&lt;P&gt;Any ideas what I'm configuring wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 01:03:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/unable-to-load-secure-boot/m-p/2039631#M565</guid>
      <dc:creator>NXPMike</dc:creator>
      <dc:date>2025-02-07T01:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: unable to load secure boot</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/unable-to-load-secure-boot/m-p/2039633#M566</link>
      <description>I am also unable to successfully complete debug authentication:&lt;BR /&gt;&lt;BR /&gt;##########################################################################################################&lt;BR /&gt;Open a debug port - operation started at 2025-02-06 16:56:21&lt;BR /&gt;##########################################################################################################&lt;BR /&gt;Executing script C:\SecureProvisioningBuild2\debug_auth\open_debug_port.bat&lt;BR /&gt;ERROR: Script failed with return code: [2]ERROR&lt;BR /&gt;### SCRIPT: Open debug port: C:\SecureProvisioningBuild2\debug_auth\open_debug_port.bat&lt;BR /&gt;call "C:\nxp\MCUX_Provi_v10\bin\_internal\tools\spsdk\nxpdebugmbox.exe" -p 1.0 -i pyocd -s OSAYAQGQ auth -b 0 -c "C:\SecureProvisioningBuild2\debug_auth\debug_auth_cert.dc" -k "C:\SecureProvisioningBuild2\keys\debug_authentication_key_RSA_2048.pem"&lt;BR /&gt;WARNING:__main__:The -p/--protocol option is deprecated and will be removed in version 2.4. (1701ms since start, nxpdebugmbox.py:259)&lt;BR /&gt;WARNING:__main__:The Family is not specified. This is a new option that will be mandatory since SPSDK 2.4. Please update your scripts. (1701ms since start, nxpdebugmbox.py:279)&lt;BR /&gt;DeprecationWarning: The command 'auth' is deprecated.&lt;BR /&gt;# Interface Id Description&lt;BR /&gt;----------------------------------------------------------------------------&lt;BR /&gt;0 PyOCD OSAYAQGQ NXP Semiconductors LPC-LINK2 CMSIS-DAP V5.224&lt;BR /&gt;WARNING:spsdk.dat.debug_mailbox:The debug mailbox access port index is not specified, trying autodetection. (2396ms since start, debug_mailbox.py:194)&lt;BR /&gt;Debug Authentication ends without AHB access.&lt;BR /&gt;SPSDKAppError: Debug Mailbox authentication failed:&lt;BR /&gt;SPSDK: Problem with debug mailbox occurred: Access to AHB is not granted.&lt;BR /&gt;nxpdebugmbox failed&lt;BR /&gt;### RESULT of the script `Open debug port`: Failure (return code = [2]ERROR)&lt;BR /&gt;Status of the operation: Failure: Open debug port</description>
      <pubDate>Fri, 07 Feb 2025 01:09:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/unable-to-load-secure-boot/m-p/2039633#M566</guid>
      <dc:creator>NXPMike</dc:creator>
      <dc:date>2025-02-07T01:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: unable to load secure boot</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/unable-to-load-secure-boot/m-p/2044970#M567</link>
      <description>&lt;P&gt;Hello Mike,&lt;/P&gt;
&lt;P&gt;I can see you are invoking the blhost commands manually. Did you try the SEC workflow? Y/N?&lt;/P&gt;
&lt;P&gt;If not, did you enrolled the key plus the sbkek.bin ? Without the SBKEK you cannot receive encrypted SB file.&lt;/P&gt;
&lt;P&gt;see the generated write_win.bat what it does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also I'm curious why you went using manual steps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Libor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 21:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/unable-to-load-secure-boot/m-p/2044970#M567</guid>
      <dc:creator>liborukropec</dc:creator>
      <dc:date>2025-02-16T21:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: unable to load secure boot</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/unable-to-load-secure-boot/m-p/2146536#M660</link>
      <description>&lt;P&gt;Hi, Mike&lt;/P&gt;&lt;P&gt;I also encountered a same problem.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;Debug Authentication ends without AHB access.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;SPSDKAppError: Debug Mailbox authentication failed:
SPSDK: Problem with debug mailbox occurred: Access to AHB is not granted.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I wonder if you have resolved this successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I pick your brain if so.&lt;/P&gt;&lt;P&gt;Jabez&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 03:54:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/unable-to-load-secure-boot/m-p/2146536#M660</guid>
      <dc:creator>JabezLaw</dc:creator>
      <dc:date>2025-08-05T03:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: unable to load secure boot</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/unable-to-load-secure-boot/m-p/2152436#M668</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;for debug authentication problems, I'd recommend to read the following paragraph in the user guide:&amp;nbsp;&amp;nbsp;&lt;A href="https://docs.mcuxpresso.nxp.com/secure/latest/09_troubleshooting.html#debug-authentication" target="_blank"&gt;Troubleshooting — MCUXpresso Secure Provisioning Tool 25.06&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 15:18:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/unable-to-load-secure-boot/m-p/2152436#M668</guid>
      <dc:creator>marek-trmac</dc:creator>
      <dc:date>2025-08-14T15:18:16Z</dc:date>
    </item>
  </channel>
</rss>

