<?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>MCX MicrocontrollersのトピックRe: Not able to program or erase MCXN236 custom board using MCU-Link</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090647#M2977</link>
    <description>&lt;P&gt;I am getting this error when I enter the "execute" command.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="satinder1_0-1746106656333.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335983i49F6D35B50C46710/image-size/medium?v=v2&amp;amp;px=400" role="button" title="satinder1_0-1746106656333.png" alt="satinder1_0-1746106656333.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 May 2025 13:37:50 GMT</pubDate>
    <dc:creator>sstcor</dc:creator>
    <dc:date>2025-05-01T13:37:50Z</dc:date>
    <item>
      <title>Not able to program or erase MCXN236 custom board using MCU-Link</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090628#M2970</link>
      <description>&lt;P&gt;I'm encountering an issue when trying to program or erase the MCXN236 using MCU-Link. Below is the log output:&lt;/P&gt;&lt;P&gt;Nc: Using SOFT reset to run the flash driver&lt;BR /&gt;Nc: Flash variant 'MCXNxxx (1024KB) (Secure)' detected (1MB = 128*8K at 0x10000000)&lt;BR /&gt;Nc: Closing flash driver MCXNxxx_S.cfx&lt;BR /&gt;Pc: ( 65) Chip Setup Complete&lt;BR /&gt;Pc: ( 70) License Check Complete&lt;BR /&gt;Nt: Loading 'GUI.bin' Binary 0x00000000 len 0x11068&lt;BR /&gt;Nc: Opening flash driver MCXNxxx.cfx&lt;BR /&gt;Nc: VECTRESET requested, but not supported on ARMv8-M CPUs. Using SOFTRESET instead.&lt;BR /&gt;Nc: Using SOFT reset to run the flash driver&lt;BR /&gt;Nc: Flash variant 'MCXNxxx (1024KB)' detected (1MB = 128*8K at 0x0)&lt;BR /&gt;Pb: 1 of 1 ( 0) Writing sectors 0-8 at 0x00000000 with 69736 bytes&lt;BR /&gt;Ps: ( 0) at 00000000: 0 bytes - 0/69736&lt;BR /&gt;Wc: failed read ChecksumSectors message readyness - rc Em(12). Target rejected debug access at location 0x040048D0&lt;/P&gt;&lt;P&gt;Wc: failed to send op EraseSector message - rc Em(12). Target rejected debug access at location 0x040048B8&lt;/P&gt;&lt;P&gt;Nc: Closing flash driver MCXNxxx.cfx&lt;BR /&gt;Nc: state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Fault in DAP access&lt;BR /&gt;Wc: failed to send op Terminate message - rc Em(12). Target rejected debug access at location 0x040048B8&lt;/P&gt;&lt;P&gt;Pb: (100) Writing Flash ended with an error.&lt;BR /&gt;Ed:05: File 'GUI.bin' load failure: Em(12). Target rejected debug access at location 0x040048B8&lt;BR /&gt;Pc: (100) Target Operation Failed&lt;BR /&gt;Nc: error closing down debug session - Nn(05). Wire ACK Fault in DAP access&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The ISP bootloader appears to be working. I can send commands to the memory using it but the code does not run after flashing.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 12:45:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090628#M2970</guid>
      <dc:creator>sstcor</dc:creator>
      <dc:date>2025-05-01T12:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to program or erase MCXN236 custom board using MCU-Link</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090630#M2971</link>
      <description>&lt;P class=""&gt;Dear&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248726"&gt;@sstcor&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This kind of issue is common when early development images misconfigure boot settings or lock debug access. Keeping ISP mode available and performing a full erase typically resolves it. Once erased, you should be able to regain normal debug access and proceed.&lt;/P&gt;&lt;P class=""&gt;Let me know if you’d like a sample flash script or want help verifying your firmware image.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ashutosh Nama.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 12:54:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090630#M2971</guid>
      <dc:creator>AshutoshNama</dc:creator>
      <dc:date>2025-05-01T12:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to program or erase MCXN236 custom board using MCU-Link</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090632#M2972</link>
      <description>&lt;P&gt;Hi Ashutosh, I tried erasing the microcontroller in ISP mode but no success. I still can't access the microcontroller using debug port.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="satinder1_0-1746104523978.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335978iA9734937A552755D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="satinder1_0-1746104523978.png" alt="satinder1_0-1746104523978.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 13:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090632#M2972</guid>
      <dc:creator>sstcor</dc:creator>
      <dc:date>2025-05-01T13:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to program or erase MCXN236 custom board using MCU-Link</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090633#M2973</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248726"&gt;@sstcor&lt;/a&gt;&amp;nbsp; , Below is a sample flash script using &lt;STRONG&gt;blhost&lt;/STRONG&gt; — NXP’s command-line tool for communicating with the bootloader — to fully erase and program the flash on an &lt;STRONG&gt;MCXN236&lt;/STRONG&gt; via &lt;STRONG&gt;ISP mode&lt;/STRONG&gt; (UART or USB, depending on your setup).&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;&lt;STRONG&gt;1. Full Chip Erase via ISP (blhost script)&lt;/STRONG&gt;&lt;/H3&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;# Connect via UART or USB first&lt;/SPAN&gt; &lt;SPAN class=""&gt;# Replace COMx with your serial port (e.g., COM3 on Windows or /dev/ttyUSB0 on Linux)&lt;/SPAN&gt; blhost -p COMx,115200 -- get-property 1 blhost -p COMx,115200 -- flash-erase-all &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;If this works, your flash is now clean.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;&lt;STRONG&gt;2. Flashing New Firmware (GUI.bin)&lt;/STRONG&gt;&lt;/H3&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;blhost -p COMx,115200 -- write-memory 0x00000000 GUI.bin blhost -p COMx,115200 -- execute 0x00000000 &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;This writes your firmware to the start of flash (address 0x00000000) and then tells the MCU to execute from there.&lt;BR /&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&lt;SPAN&gt;: If your &lt;/SPAN&gt;GUI.bin&lt;SPAN&gt; is an image from MCUXpresso or GCC, ensure it is a proper &lt;/SPAN&gt;&lt;STRONG&gt;binary file&lt;/STRONG&gt;&lt;SPAN&gt; and not in ELF or HEX format. If needed, convert with:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;arm-none-eabi-objcopy -O binary GUI.elf GUI.bin &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H3&gt;&lt;STRONG&gt;3. Quick Image Validity Checklist&lt;/STRONG&gt;&lt;/H3&gt;&lt;P class=""&gt;Before flashing, check that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;The &lt;STRONG&gt;first 8 bytes&lt;/STRONG&gt; of GUI.bin contain a &lt;STRONG&gt;valid stack pointer&lt;/STRONG&gt; and &lt;STRONG&gt;reset vector&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;You're not configuring any memory regions (e.g., TrustZone, MPU) that might restrict access without properly initializing them.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;If Secure Boot is enabled, the image is signed or provisioned correctly.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;Would you like me to generate a minimal example main.c that’s safe to flash and test on the MCXN236?&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ashutosh Nama&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 13:03:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090633#M2973</guid>
      <dc:creator>AshutoshNama</dc:creator>
      <dc:date>2025-05-01T13:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to program or erase MCXN236 custom board using MCU-Link</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090637#M2974</link>
      <description>Yes, can you please generate a minimal example? Also,it look like blhost execute is missing some args.</description>
      <pubDate>Thu, 01 May 2025 13:19:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090637#M2974</guid>
      <dc:creator>sstcor</dc:creator>
      <dc:date>2025-05-01T13:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to program or erase MCXN236 custom board using MCU-Link</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090638#M2975</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="annotated_flash_debug_issue.png" style="width: 200px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335979iA20119041AAFECFC/image-size/small?v=v2&amp;amp;px=200" role="button" title="annotated_flash_debug_issue.png" alt="annotated_flash_debug_issue.png" /&gt;&lt;/span&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248726"&gt;@sstcor&lt;/a&gt;&amp;nbsp;&amp;nbsp;Check the image I hope this will help you still if you face any problem let me know.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ashutosh Nama.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 13:21:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090638#M2975</guid>
      <dc:creator>AshutoshNama</dc:creator>
      <dc:date>2025-05-01T13:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to program or erase MCXN236 custom board using MCU-Link</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090642#M2976</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Absolutely&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248726"&gt;@sstcor&lt;/a&gt;&amp;nbsp; — here's a &lt;STRONG&gt;minimal working example&lt;/STRONG&gt; of how to use blhost to:&lt;/FONT&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Connect to the target in &lt;STRONG&gt;ISP (UART)&lt;/STRONG&gt; mode.&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Erase the flash memory.&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Write a binary image.&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Jump to the application.&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Minimal blhost Flash Script Example&lt;/FONT&gt;&lt;/H3&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;# Step 1: Check connection to bootloader&lt;/SPAN&gt; ./blhost -p COM5,115200 -- get-property 1 &lt;SPAN class=""&gt;# Step 2: Erase all flash&lt;/SPAN&gt; ./blhost -p COM5,115200 -- flash-erase-all &lt;SPAN class=""&gt;# Step 3: Write image to flash (replace `your_firmware.bin` with your image file)&lt;/SPAN&gt; ./blhost -p COM5,115200 -- write-memory 0x0 your_firmware.bin &lt;SPAN class=""&gt;# Step 4: Jump to application&lt;/SPAN&gt; ./blhost -p COM5,115200 -- execute 0x00000000 &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H3&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Key Notes&lt;/FONT&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;-p COM5,115200 specifies UART port and baud rate (replace COM5 as needed).&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;0x0 is the start address for most MCUs (check your specific part).&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Make sure the target is in &lt;STRONG&gt;ISP mode&lt;/STRONG&gt; (boot pins or jumper set).&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Let me know if you'd like a .bat script version or a Linux shell script.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Best Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Ashutosh Nama.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 13:29:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090642#M2976</guid>
      <dc:creator>AshutoshNama</dc:creator>
      <dc:date>2025-05-01T13:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to program or erase MCXN236 custom board using MCU-Link</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090647#M2977</link>
      <description>&lt;P&gt;I am getting this error when I enter the "execute" command.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="satinder1_0-1746106656333.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335983i49F6D35B50C46710/image-size/medium?v=v2&amp;amp;px=400" role="button" title="satinder1_0-1746106656333.png" alt="satinder1_0-1746106656333.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 13:37:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090647#M2977</guid>
      <dc:creator>sstcor</dc:creator>
      <dc:date>2025-05-01T13:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to program or erase MCXN236 custom board using MCU-Link</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090651#M2978</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248726"&gt;@sstcor&lt;/a&gt;&amp;nbsp; I'm running out of DMs can we connect over the call to solve this problem?&lt;BR /&gt;&lt;BR /&gt;My mail address is: &lt;A href="mailto:ashutoshnama26@gmail.com" target="_blank"&gt;ashutoshnama26@gmail.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ashutosh Nama&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 13:50:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090651#M2978</guid>
      <dc:creator>AshutoshNama</dc:creator>
      <dc:date>2025-05-01T13:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to program or erase MCXN236 custom board using MCU-Link</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090654#M2979</link>
      <description>Sure, I sent you an email on the given address.</description>
      <pubDate>Thu, 01 May 2025 14:06:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/Not-able-to-program-or-erase-MCXN236-custom-board-using-MCU-Link/m-p/2090654#M2979</guid>
      <dc:creator>sstcor</dc:creator>
      <dc:date>2025-05-01T14:06:26Z</dc:date>
    </item>
  </channel>
</rss>

