<?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: Cannot flash MCU MKL02Z32CAF4R in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-flash-MCU-MKL02Z32CAF4R/m-p/1815890#M66096</link>
    <description>&lt;P&gt;Hello, my name is Pavel, and I will be supporting your case, this issue is the common "&lt;FONT size="2"&gt;&lt;STRONG&gt;Cannot halt processor&lt;/STRONG&gt;&lt;/FONT&gt;" Maybe you could recover the control with a mass erase on the target MCU.&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Best regards,&lt;BR /&gt;Pavel&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 19:21:47 GMT</pubDate>
    <dc:creator>Pavel_Hernandez</dc:creator>
    <dc:date>2024-02-26T19:21:47Z</dc:date>
    <item>
      <title>Cannot flash MCU MKL02Z32CAF4R</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-flash-MCU-MKL02Z32CAF4R/m-p/1814393#M66090</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to debug&amp;nbsp;MKL02Z32CAF4R 20-pin package. I'm using the following setup:&lt;/P&gt;&lt;P&gt;1. A custom board with&amp;nbsp;MKL02Z32CAF4R on it. Access to SWDIO and SWDCLK pins as well as RESET_b pin. The MCU is shipped new.&lt;/P&gt;&lt;P&gt;2. MCUExpresso IDE version&amp;nbsp;v11.9.0 [Build 2144].&lt;/P&gt;&lt;P&gt;3. MCU-Link (base version) with Linkserver 1.4.85. MCU-LINK installer version 2.263 (I tried also the latest version 3.133, but the result is the same).&lt;/P&gt;&lt;P&gt;4. I'm debugging through SWD and I'm using jumper J6 on MCU-Link to connect to DIO, CLK and Reset. My board is powered externally though a power supply with 3.3V.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. I'm using the simplest code - main contains an infinite loop with a for-loop delay and a PRINTF.&lt;/P&gt;&lt;P&gt;6. linkserver configuration is the following in the IDE (using mass erase under GUI Flash tool tab and I also tried to use various reset scripts provided in the linkserver by default):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="il_andil_0-1708671133660.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/264696i002805838714C26A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="il_andil_0-1708671133660.png" alt="il_andil_0-1708671133660.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;7. I configured only two pins using the IDE (Vdd and Vss), but configuring also DIO and CLK led to the same result.&lt;/P&gt;&lt;P&gt;8. I connected the reset pin on the MCU-Linnk J6 to the reset pin (A4) on the MCU, and tried again, but the result is the same.&lt;/P&gt;&lt;P&gt;I already read through&amp;nbsp; this forum&amp;nbsp;&lt;A href="https://community.nxp.com/t5/MCUXpresso-General/LPC1758-Cannot-halt-processor/m-p/1368631" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/MCUXpresso-General/LPC1758-Cannot-halt-processor/m-p/1368631&lt;/A&gt;&amp;nbsp;and this&amp;nbsp;&lt;A href="https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Regaining-debug-access-to-target-MCU/m-p/473923" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Regaining-debug-access-to-target-MCU/m-p/473923&lt;/A&gt;&amp;nbsp;but I don't think I can use ISP with this MCU (let me know if i'm wrong).&lt;/P&gt;&lt;P&gt;The result is that it is not possible to halt core. I don't understand what it means since I'm new to&amp;nbsp; programming at this level:&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;MCUXpresso IDE RedlinkMulti Driver v11.9 (Dec 11 2023 18:02:10 - crt_emu_cm_redlink build 2)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Found chip XML file in C:/Users/zzz/Documents/MCUXpressoIDE_11.9.0_2144/workspace/SimpleTest1/Release\MKL02Z32xxx4.xml&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;( 5) Remote configuration complete&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Reconnected to existing LinkServer process.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;============= SCRIPT: kinetisconnect.scp =============&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Kinetis Connect Script&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Connecting to Probe Index = 1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;This probe = 1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;This TAP = 0&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;This core = 0&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;DpID = 0BC11477&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Assert NRESET&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Reset pin state: 00&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Power up Debug&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP APID: 0x001C0020&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP System Reset/Hold Reset/Debug Request&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP Control: 0x0000001C&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP Status (Flash Ready) : 0x00000032&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Part is not secured&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP Control: 0x00000014&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Release NRESET&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Reset pin state: 01&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP Control (Debug Request): 0x00000004&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP Status: 0x00000032&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP Core Halt Failed&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP Control (Debug Request): 0x00000004&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP Status: 0x00000032&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP Core Halt Failed&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP Control (Debug Request): 0x00000004&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP Status: 0x00000032&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;MDM-AP Core Halt Failed&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;============= END SCRIPT =============================&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Probe Firmware: MCU-LINK (r0FF) CMSIS-DAP V2.263 (NXP Semiconductors)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Serial Number: VWMFB1M11IXOD&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;VID:PID: 1FC9:0143&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0143&amp;amp;mi_00#7&amp;amp;190a6d17&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Using memory from core 0 after searching for a good core&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;On debug connection - reset using system reset&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Warning - processor did not halt - gave up waiting&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Cannot halt processor&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Request debug reset of DAP&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Cannot halt processor&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Request debug reset of DAP&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;( 40) No Halt&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;debug interface type = CoreSight DP (DAP DP ID 0BC11477) over SWD TAP 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;processor type = Cortex-M0+ (CPU ID 00000C60) on DAP AP 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;number of h/w breakpoints = 2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;number of flash patches = 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;number of h/w watchpoints = 2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Probe(0): Connected&amp;amp;Reset. DpID: 0BC11477. CpuID: 00000C60. Info: &amp;lt;None&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Content of CoreSight Debug ROM(s):&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;RBASE F0002000: CID B105100D PID 000008E000 ROM (type 0x1)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;ROM 1 F0000000: CID B105900D PID 04000BB932 CSt ARM MTB type 0x31 Trace Sink - Basic trace router&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;ROM 1 F0001000: CID B105900D PID 000008E000 CSt MTBDWT type 0x4 Debug Control - Other&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;ROM 1 E00FF000: CID B105100D PID 04000BB4C0 ROM (type 0x1)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;ROM 4 E000E000: CID B105E00D PID 04000BB008 Gen SCS (type 0x0)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;ROM 4 E0001000: CID B105E00D PID 04000BB00A Gen DWT (type 0x0)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;ROM 4 E0002000: CID B105E00D PID 04000BB00B Gen FPB (type 0x0)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Cannot halt processor&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Failed on chip setup: Ep(04). Cannot halt processor.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;(C:\nxp\LinkServer_1.4.85\binaries\crt_emu_cm_redlink) Waiting for new GDB session to start...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Can you see if I'm doing anything wrong or if I can try something else?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Feb 2024 07:04:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-flash-MCU-MKL02Z32CAF4R/m-p/1814393#M66090</guid>
      <dc:creator>il_andil</dc:creator>
      <dc:date>2024-02-23T07:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot flash MCU MKL02Z32CAF4R</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-flash-MCU-MKL02Z32CAF4R/m-p/1815890#M66096</link>
      <description>&lt;P&gt;Hello, my name is Pavel, and I will be supporting your case, this issue is the common "&lt;FONT size="2"&gt;&lt;STRONG&gt;Cannot halt processor&lt;/STRONG&gt;&lt;/FONT&gt;" Maybe you could recover the control with a mass erase on the target MCU.&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Best regards,&lt;BR /&gt;Pavel&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 19:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Cannot-flash-MCU-MKL02Z32CAF4R/m-p/1815890#M66096</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2024-02-26T19:21:47Z</dc:date>
    </item>
  </channel>
</rss>

