<?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>MCUXpresso Secure Provisioning ToolのトピックRe: Write Image fail.   frequently.</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Write-Image-fail-frequently/m-p/2128563#M638</link>
    <description>&lt;P&gt;You mean [from "FlexSPI NOR - simplified"], this part?&lt;/P&gt;&lt;P&gt;When I click it, the "Boot Memory Configuration" window pops up.&lt;BR /&gt;So you mean I should double-check the memory configuration in this window, right?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jul 2025 08:43:03 GMT</pubDate>
    <dc:creator>Seongyon_Jeong</dc:creator>
    <dc:date>2025-07-04T08:43:03Z</dc:date>
    <item>
      <title>Write Image fail.   frequently.</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Write-Image-fail-frequently/m-p/2128467#M633</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Seongyon_Jeong_0-1751610568195.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346092iDEE51AC901052611/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Seongyon_Jeong_0-1751610568195.png" alt="Seongyon_Jeong_0-1751610568195.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’ve been using it without any issues until recently, but suddenly, I can no longer write the image.&lt;/P&gt;&lt;P&gt;The USB connection is confirmed to be working, and the DIP switch is set to Serial Download Mode.&lt;/P&gt;&lt;P&gt;What could be the reason it’s not working anymore?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What's even more strange is that I couldn’t figure out what was wrong, so I tested with another board — and the write was successful.&lt;BR /&gt;Then I reconnected the original problematic board, and this time the writing succeeded as well.&lt;/P&gt;&lt;P&gt;What could be the cause of this behavior?&lt;BR /&gt;Is there something unstable in the current software?&lt;BR /&gt;If it fails intermittently like this, what should I do to recover from the failure?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Below is the Log from the Tool window.&lt;BR /&gt;&lt;BR /&gt;##########################################################################################################&amp;#29;&lt;BR /&gt;Build image - operation started at 2025-07-04 15:16:10&amp;#29;&lt;BR /&gt;##########################################################################################################&amp;#29;&lt;BR /&gt;Build script is generated: build_image_lnx.sh&amp;#29;&lt;BR /&gt;Build script is generated: build_image_win.bat&amp;#29;&lt;BR /&gt;Build script is generated: build_image_mac.sh&amp;#29;&lt;BR /&gt;Executing script C:\Users\VICTUS1\secure_provisioning_1\build_image_win.bat&amp;#29;&lt;BR /&gt;### SCRIPT: Building image: C:\Users\VICTUS1\secure_provisioning_1\build_image_win.bat&amp;#29;&lt;BR /&gt;Build HAB image&lt;BR /&gt;nxpimage hab export -c "C:\Users\VICTUS1\secure_provisioning_1\bd_files\imx_application_gen_win.bd" -o "C:\Users\VICTUS1\secure_provisioning_1\bootable_images\evkmimxrt1020_shell.bin" "C:\Users\VICTUS1\secure_provisioning_1\source_images\evkmimxrt1020_shell.srec"&lt;BR /&gt;Success. (HAB container: C:\Users\VICTUS1\secure_provisioning_1\bootable_images\evkmimxrt1020_shell.bin created.)&lt;BR /&gt;nxpimage succeeded&lt;BR /&gt;### Build flashloader as unsigned bootable image ###&lt;BR /&gt;nxpimage hab export -c "C:\Users\VICTUS1\secure_provisioning_1\bd_files\unsigned_MIMXRT1020_flashloader_win.bd" -o "C:\Users\VICTUS1\secure_provisioning_1\bootable_images\unsigned_MIMXRT1020_flashloader.bin" "C:\nxp\MCUX_Provi_25.03\bin\_internal\data\targets\MIMXRT1020\flashloader.srec"&lt;BR /&gt;Success. (HAB container: C:\Users\VICTUS1\secure_provisioning_1\bootable_images\unsigned_MIMXRT1020_flashloader.bin created.)&lt;BR /&gt;nxpimage succeeded&lt;BR /&gt;### Build flashloader as signed bootable image ###&lt;BR /&gt;nxpimage hab export -c "C:\Users\VICTUS1\secure_provisioning_1\bd_files\signed_MIMXRT1020_flashloader_win.bd" -o "C:\Users\VICTUS1\secure_provisioning_1\bootable_images\signed_MIMXRT1020_flashloader.bin" "C:\nxp\MCUX_Provi_25.03\bin\_internal\data\targets\MIMXRT1020\flashloader.srec"&lt;BR /&gt;Success. (HAB container: C:\Users\VICTUS1\secure_provisioning_1\bootable_images\signed_MIMXRT1020_flashloader.bin created.)&lt;BR /&gt;nxpimage succeeded&amp;#29;&lt;BR /&gt;### RESULT of the script `Building image`: Success (return code = [0]SUCCESS)&amp;#29;&lt;BR /&gt;Status of the operation: Success: Building image&amp;#29;&lt;/P&gt;&lt;P&gt;##########################################################################################################&amp;#29;&lt;BR /&gt;Write image - operation started at 2025-07-04 15:16:24&amp;#29;&lt;BR /&gt;##########################################################################################################&amp;#29;&lt;BR /&gt;The following fuses status was detected:&amp;#29;&lt;BR /&gt;Executing script C:\Users\VICTUS1\secure_provisioning_1\gen_scripts\init_flashloader_win.bat&amp;#29;&lt;BR /&gt;### SCRIPT: Starting flashloader: C:\Users\VICTUS1\secure_provisioning_1\gen_scripts\init_flashloader_win.bat&amp;#29;&lt;BR /&gt;### Parse input arguments ###&lt;BR /&gt;### Check presence of FlashLoader ###&amp;#29;&lt;BR /&gt;### RESULT of the script `Starting flashloader`: Success (return code = [0]SUCCESS)&amp;#29;&lt;BR /&gt;Status of the operation: Success: Starting flashloader&amp;#29;&lt;BR /&gt;OTP request: BOOT_CFG1 |= 0x2 (mask: 0x2); current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[255:224] |= 0x42a2392f; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[223:192] |= 0xd380534e; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[191:160] |= 0x9cd14797; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[159:128] |= 0xe5619aef; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[127:96] |= 0x9398b927; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[95:64] |= 0xbe09caa9; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[63:32] |= 0xddb7b0b4; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[31:0] |= 0x26327105; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;SUMMARY: Detected status of fuses for write operation: some/all fuse(s) need to be burned&amp;#29;&lt;BR /&gt;Status of the operation: Cancelled: The operation was cancelled by the user.&amp;#29;&lt;BR /&gt;Status of the operation: Failure: Irreversible changes&amp;#29;&lt;/P&gt;&lt;P&gt;##########################################################################################################&amp;#29;&lt;BR /&gt;Write image - operation started at 2025-07-04 15:16:37&amp;#29;&lt;BR /&gt;##########################################################################################################&amp;#29;&lt;BR /&gt;The following fuses status was detected:&amp;#29;&lt;BR /&gt;Executing script C:\Users\VICTUS1\secure_provisioning_1\gen_scripts\init_flashloader_win.bat&amp;#29;&lt;BR /&gt;### SCRIPT: Starting flashloader: C:\Users\VICTUS1\secure_provisioning_1\gen_scripts\init_flashloader_win.bat&amp;#29;&lt;BR /&gt;### Parse input arguments ###&lt;BR /&gt;### Check presence of FlashLoader ###&amp;#29;&lt;BR /&gt;### RESULT of the script `Starting flashloader`: Success (return code = [0]SUCCESS)&amp;#29;&lt;BR /&gt;Status of the operation: Success: Starting flashloader&amp;#29;&lt;BR /&gt;OTP request: BOOT_CFG1 |= 0x2 (mask: 0x2); current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[255:224] |= 0x42a2392f; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[223:192] |= 0xd380534e; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[191:160] |= 0x9cd14797; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[159:128] |= 0xe5619aef; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[127:96] |= 0x9398b927; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[95:64] |= 0xbe09caa9; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[63:32] |= 0xddb7b0b4; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;OTP request: SRK_HASH[31:0] |= 0x26327105; current value=0x0; status=WRITE&amp;#29;&lt;BR /&gt;SUMMARY: Detected status of fuses for write operation: some/all fuse(s) need to be burned&amp;#29;&lt;BR /&gt;Write script generated: write_image_lnx.sh&amp;#29;&lt;BR /&gt;Write script generated: write_image_win.bat&amp;#29;&lt;BR /&gt;Write script generated: write_image_mac.sh&amp;#29;&lt;BR /&gt;Executing script C:\Users\VICTUS1\secure_provisioning_1\write_image_win.bat&amp;#29;&lt;BR /&gt;ERROR: Script failed with return code: [2]ERROR&amp;#29;&lt;BR /&gt;### SCRIPT: Writing image: C:\Users\VICTUS1\secure_provisioning_1\write_image_win.bat&amp;#29;&lt;BR /&gt;### Parse input arguments ###&lt;BR /&gt;### Check presence of FlashLoader ###&lt;BR /&gt;### Configure FlexSPI NOR memory using options on address 0x2000 ###&lt;BR /&gt;blhost -t 5000 -u 0x15A2,0x0073 -j -- fill-memory 0x2000 4 0xC0000007 word&lt;BR /&gt;{&lt;BR /&gt;"command": "fill-memory",&lt;BR /&gt;"response": [],&lt;BR /&gt;"status": {&lt;BR /&gt;"description": "0 (0x0) Success.",&lt;BR /&gt;"value": 0&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;blhost succeeded&lt;BR /&gt;blhost -t 5000 -u 0x15A2,0x0073 -j -- configure-memory 9 0x2000&lt;BR /&gt;{&lt;BR /&gt;"command": "configure-memory",&lt;BR /&gt;"response": [],&lt;BR /&gt;"status": {&lt;BR /&gt;"description": "0 (0x0) Success.",&lt;BR /&gt;"value": 0&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;blhost succeeded&lt;BR /&gt;### Erase memory before writing image ###&lt;BR /&gt;blhost -t 50450 -u 0x15A2,0x0073 -j -- flash-erase-region 0x60000000 45056 0&lt;BR /&gt;{&lt;BR /&gt;"command": "flash-erase-region",&lt;BR /&gt;"response": [],&lt;BR /&gt;"status": {&lt;BR /&gt;"description": "20106 (0x4e8a) FlexSPINOR: Command Failure.",&lt;BR /&gt;"value": 20106&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;blhost failed&amp;#29;&lt;BR /&gt;### RESULT of the script `Writing image`: Failure (return code = [2]ERROR)&amp;#29;&lt;BR /&gt;Status of the operation: Failure: Writing image&amp;#29;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Below&amp;nbsp; picture is successfull&amp;nbsp; state.&amp;nbsp; &amp;nbsp;again...&amp;nbsp; &amp;nbsp;but I did&amp;nbsp; nothing...&amp;nbsp; &amp;nbsp; when fail -&amp;gt; successful&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Seongyon_Jeong_1-1751610813574.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346093i9F748FD66AF431F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Seongyon_Jeong_1-1751610813574.png" alt="Seongyon_Jeong_1-1751610813574.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 06:34:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Write-Image-fail-frequently/m-p/2128467#M633</guid>
      <dc:creator>Seongyon_Jeong</dc:creator>
      <dc:date>2025-07-04T06:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Write Image fail.   frequently.</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Write-Image-fail-frequently/m-p/2128478#M635</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;this problems means the memory configuration is not valid or flash cannot be erased. Double check configuration of the external memory.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 06:56:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Write-Image-fail-frequently/m-p/2128478#M635</guid>
      <dc:creator>marek-trmac</dc:creator>
      <dc:date>2025-07-04T06:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Write Image fail.   frequently.</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Write-Image-fail-frequently/m-p/2128563#M638</link>
      <description>&lt;P&gt;You mean [from "FlexSPI NOR - simplified"], this part?&lt;/P&gt;&lt;P&gt;When I click it, the "Boot Memory Configuration" window pops up.&lt;BR /&gt;So you mean I should double-check the memory configuration in this window, right?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 08:43:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Write-Image-fail-frequently/m-p/2128563#M638</guid>
      <dc:creator>Seongyon_Jeong</dc:creator>
      <dc:date>2025-07-04T08:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Write Image fail.   frequently.</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Write-Image-fail-frequently/m-p/2128772#M641</link>
      <description>Yes, this is what I mean.&lt;BR /&gt;&lt;BR /&gt;Background information about flash configuration:&lt;BR /&gt;There are two options, how to configure FlexSPI NOR flash. By default, simplified option is selected, this works for most of the flash memories. During flash initialization, ROM converts the simplified configuration into FCB (flash control block), I think it is 256 or 512 bytes block configuration. If you have this block, you can use it directly in SEC.</description>
      <pubDate>Fri, 04 Jul 2025 18:37:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Write-Image-fail-frequently/m-p/2128772#M641</guid>
      <dc:creator>marek-trmac</dc:creator>
      <dc:date>2025-07-04T18:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Write Image fail.   frequently.</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Write-Image-fail-frequently/m-p/2128882#M642</link>
      <description>Thanks for reply.</description>
      <pubDate>Mon, 07 Jul 2025 00:33:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Secure-Provisioning/Write-Image-fail-frequently/m-p/2128882#M642</guid>
      <dc:creator>Seongyon_Jeong</dc:creator>
      <dc:date>2025-07-07T00:33:37Z</dc:date>
    </item>
  </channel>
</rss>

