<?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: CPU not Halted when jlink segger debug is used in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CPU-not-Halted-when-jlink-segger-debug-is-used/m-p/2020302#M67111</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234888"&gt;@RohitKewatLFT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your post.&amp;nbsp;I'm very sorry for the late reply. It appears that you are using the programming tool integrated within MCUXpresso. What about JFlash? Does the same problem occur when using it? Besides, are there any abnormal pop-up windows?&lt;BR /&gt;You are currently using JTAG. What will happen if you switch to SWD? You might as well give it a try and let me know the result. This will assist us in locating and resolving the problem more accurately.&lt;/P&gt;
&lt;P&gt;BRs,&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2024 04:10:20 GMT</pubDate>
    <dc:creator>Celeste_Liu</dc:creator>
    <dc:date>2024-12-30T04:10:20Z</dc:date>
    <item>
      <title>CPU not Halted when jlink segger debug is used</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CPU-not-Halted-when-jlink-segger-debug-is-used/m-p/2019732#M67109</link>
      <description>&lt;P&gt;Hi All ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am not able to flash my hex file in to MK10DN512VLK10&amp;nbsp; using J Link segger , when try to flash I am geting error like CPU not halted , please find below log:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SDK version : 2.2.0&lt;BR /&gt;&lt;SPAN&gt;MCUXpresso IDE v11.10.0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Executing flash operation 'Program' (Program executable into flash TEST_MK10D10_Project.axf) - Fri Dec 20 17:31:10 IST 2024&lt;BR /&gt;Checking MCU info...&lt;BR /&gt;Scanning for targets...&lt;BR /&gt;Executing flash action...&lt;BR /&gt;SEGGER J-Link Commander V7.96o (Compiled Jun 26 2024 16:18:16)&lt;BR /&gt;DLL version V7.96o, compiled Jun 26 2024 16:17:29&lt;BR /&gt;J-Link Command File read successfully.&lt;BR /&gt;Processing script file...&lt;BR /&gt;J-Link&amp;gt;ExitOnError 1&lt;BR /&gt;J-Link Commander will now exit on Error&lt;BR /&gt;J-Link&amp;gt;r&lt;BR /&gt;J-Link connection not established yet but required for command.&lt;BR /&gt;Connecting to J-Link via USB...O.K.&lt;BR /&gt;Firmware: J-Link V12 compiled Jul 3 2024 16:56:02&lt;BR /&gt;Hardware version: V12.00&lt;BR /&gt;J-Link uptime (since boot): 0d 00h 01m 33s&lt;BR /&gt;S/N: 52008676&lt;BR /&gt;License(s): GDB&lt;BR /&gt;USB speed mode: High speed (480 MBit/s)&lt;BR /&gt;VTref=3.354V&lt;BR /&gt;Target connection not established yet but required for command.&lt;BR /&gt;Device "MK10DN512XXX10" selected.&lt;BR /&gt;Connecting to target via JTAG&lt;BR /&gt;ConfigTargetSettings() start&lt;BR /&gt;ConfigTargetSettings() end - Took 16us&lt;BR /&gt;InitTarget() start&lt;BR /&gt;InitTarget()&lt;BR /&gt;JTAG selected. Identifying JTAG Chain...&lt;BR /&gt;TotalIRLen = 4, IRPrint = 0x01&lt;BR /&gt;JTAG chain detection found 1 devices:&lt;BR /&gt;#0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP&lt;BR /&gt;JTAG Chain Identified. Connecting to DAP TAP...&lt;BR /&gt;Successfully connected to selected DAP TAP.&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;InitTarget() end - Took 360ms&lt;BR /&gt;TotalIRLen = 4, IRPrint = 0x01&lt;BR /&gt;JTAG chain detection found 1 devices:&lt;BR /&gt;#0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP&lt;BR /&gt;DPv0 detected&lt;BR /&gt;Scanning AP map to find all available APs&lt;BR /&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;BR /&gt;AP[0]: AHB-AP (IDR: 0x24770011)&lt;BR /&gt;AP[1]: JTAG-AP (IDR: 0x001C0000)&lt;BR /&gt;Iterating through AP map to find AHB-AP to use&lt;BR /&gt;AP[0]: Core found&lt;BR /&gt;AP[0]: AHB-AP ROM base: 0xE00FF000&lt;BR /&gt;CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)&lt;BR /&gt;Found Cortex-M4 r0p1, Little endian.&lt;BR /&gt;FPUnit: 6 code (BP) slots and 2 literal slots&lt;BR /&gt;CoreSight components:&lt;BR /&gt;ROMTbl[0] @ E00FF000&lt;BR /&gt;[0][0]: E000E000 CID B105E00D PID 000BB000 SCS&lt;BR /&gt;[0][1]: E0001000 CID B105E00D PID 003BB002 DWT&lt;BR /&gt;[0][2]: E0002000 CID B105E00D PID 002BB003 FPB&lt;BR /&gt;[0][3]: E0000000 CID B105E00D PID 003BB001 ITM&lt;BR /&gt;[0][4]: E0040000 CID B105900D PID 000BB9A1 TPIU&lt;BR /&gt;[0][5]: E0041000 CID B105900D PID 000BB925 ETM&lt;BR /&gt;[0][6]: E0042000 CID B105900D PID 003BB907 ETB&lt;BR /&gt;[0][7]: E0043000 CID B105900D PID 001BB908 CSTF&lt;BR /&gt;Memory zones:&lt;BR /&gt;"Default" Description: Default access mode&lt;BR /&gt;Cortex-M4 identified.&lt;BR /&gt;Reset delay: 0 ms&lt;BR /&gt;Reset type NORMAL: Resets core &amp;amp; peripherals via SYSRESETREQ &amp;amp; VECTRESET bit.&lt;BR /&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;BR /&gt;Reset: Reset device via AIRCR.SYSRESETREQ.&lt;BR /&gt;Reset: S_RESET_ST never gets cleared. CPU seems to be kept in reset forever.&lt;BR /&gt;Reset: Using fallback: Reset pin.&lt;BR /&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;BR /&gt;Reset: Reset device via reset pin&lt;BR /&gt;Reset: VC_CORERESET did not halt CPU. (Debug logic also reset by reset pin?).&lt;BR /&gt;Reset: Reconnecting and manually halting CPU.&lt;BR /&gt;DPv0 detected&lt;BR /&gt;AP map detection skipped. Manually configured AP map found.&lt;BR /&gt;AP[0]: AHB-AP (IDR: Not set)&lt;BR /&gt;AP[0]: Core found&lt;BR /&gt;AP[0]: AHB-AP ROM base: 0xE00FF000&lt;BR /&gt;CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)&lt;BR /&gt;Found Cortex-M4 r0p1, Little endian.&lt;BR /&gt;CPU could not be halted&lt;BR /&gt;Reset: Core did not halt after reset, trying to disable WDT.&lt;BR /&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;BR /&gt;Reset: Reset device via reset pin&lt;BR /&gt;Reset: VC_CORERESET did not halt CPU. (Debug logic also reset by reset pin?).&lt;BR /&gt;Reset: Reconnecting and manually halting CPU.&lt;BR /&gt;DPv0 detected&lt;BR /&gt;AP map detection skipped. Manually configured AP map found.&lt;BR /&gt;AP[0]: AHB-AP (IDR: Not set)&lt;BR /&gt;AP[0]: Core found&lt;BR /&gt;AP[0]: AHB-AP ROM base: 0xE00FF000&lt;BR /&gt;CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)&lt;BR /&gt;Found Cortex-M4 r0p1, Little endian.&lt;BR /&gt;CPU could not be halted&lt;BR /&gt;AfterResetTarget() start&lt;BR /&gt;AfterResetTarget()&lt;BR /&gt;_TargetHalt: CPU did not halt.&lt;BR /&gt;AfterResetTarget() end - Took 205ms&lt;BR /&gt;CPU could not be halted&lt;BR /&gt;****** Error: Failed to halt CPU.&lt;BR /&gt;J-Link&amp;gt;h&lt;BR /&gt;CPU could not be halted&lt;BR /&gt;J-Link&amp;gt;loadfile "C:\Users\Rok\Documents\MCUXpressoIDE_11.10.0_3148\workspace_MK10\TEST_MK10D10_Project\Debug\TEST_MK10D10_Project.hex"&lt;BR /&gt;'loadfile': Performing implicit reset &amp;amp; halt of MCU.&lt;BR /&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;BR /&gt;Reset: Reset device via AIRCR.SYSRESETREQ.&lt;BR /&gt;Reset: S_RESET_ST never gets cleared. CPU seems to be kept in reset forever.&lt;BR /&gt;Reset: Using fallback: Reset pin.&lt;BR /&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;BR /&gt;Reset: Reset device via reset pin&lt;BR /&gt;Reset: VC_CORERESET did not halt CPU. (Debug logic also reset by reset pin?).&lt;BR /&gt;Reset: Reconnecting and manually halting CPU.&lt;BR /&gt;DPv0 detected&lt;BR /&gt;AP map detection skipped. Manually configured AP map found.&lt;BR /&gt;AP[0]: AHB-AP (IDR: Not set)&lt;BR /&gt;AP[0]: Core found&lt;BR /&gt;AP[0]: AHB-AP ROM base: 0xE00FF000&lt;BR /&gt;CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)&lt;BR /&gt;Found Cortex-M4 r0p1, Little endian.&lt;BR /&gt;CPU could not be halted&lt;BR /&gt;Reset: Core did not halt after reset, trying to disable WDT.&lt;BR /&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;BR /&gt;Reset: Reset device via reset pin&lt;BR /&gt;Reset: VC_CORERESET did not halt CPU. (Debug logic also reset by reset pin?).&lt;BR /&gt;Reset: Reconnecting and manually halting CPU.&lt;BR /&gt;DPv0 detected&lt;BR /&gt;AP map detection skipped. Manually configured AP map found.&lt;BR /&gt;AP[0]: AHB-AP (IDR: Not set)&lt;BR /&gt;AP[0]: Core found&lt;BR /&gt;AP[0]: AHB-AP ROM base: 0xE00FF000&lt;BR /&gt;CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)&lt;BR /&gt;Found Cortex-M4 r0p1, Little endian.&lt;BR /&gt;CPU could not be halted&lt;BR /&gt;AfterResetTarget() start&lt;BR /&gt;AfterResetTarget()&lt;BR /&gt;_TargetHalt: CPU did not halt.&lt;BR /&gt;AfterResetTarget() end - Took 204ms&lt;BR /&gt;CPU could not be halted&lt;BR /&gt;****** Error: Failed to halt CPU.&lt;BR /&gt;CPU could not be halted&lt;BR /&gt;Downloading file [C:\Users\Rohit.Kewat\Documents\MCUXpressoIDE_11.10.0_3148\workspace_MK10\TEST_MK10D10_Project\Debug\TEST_MK10D10_Project.hex]...&lt;BR /&gt;CPU could not be halted&lt;BR /&gt;****** Error: Verification of RAMCode failed @ address 0x1FFF0000.&lt;BR /&gt;Write: 0xA801BE00 F0009900&lt;BR /&gt;0x00000000 00000000&lt;BR /&gt;Failed to prepare for programming.&lt;BR /&gt;Failed to download RAMCode!&lt;BR /&gt;Cannot read register 16 (XPSR) while CPU is running&lt;BR /&gt;Cannot read register 20 (CFBP) while CPU is running&lt;BR /&gt;Cannot read register 0 (R0) while CPU is running&lt;BR /&gt;Cannot read register 1 (R1) while CPU is running&lt;BR /&gt;Cannot read register 2 (R2) while CPU is running&lt;BR /&gt;Cannot read register 3 (R3) while CPU is running&lt;BR /&gt;Cannot read register 4 (R4) while CPU is running&lt;BR /&gt;Cannot read register 5 (R5) while CPU is running&lt;BR /&gt;Cannot read register 6 (R6) while CPU is running&lt;BR /&gt;Cannot read register 7 (R7) while CPU is running&lt;BR /&gt;Cannot read register 8 (R8) while CPU is running&lt;BR /&gt;Cannot read register 9 (R9) while CPU is running&lt;BR /&gt;Cannot read register 10 (R10) while CPU is running&lt;BR /&gt;Cannot read register 11 (R11) while CPU is running&lt;BR /&gt;Cannot read register 12 (R12) while CPU is running&lt;BR /&gt;Cannot read register 14 (R14) while CPU is running&lt;BR /&gt;Cannot read register 15 (R15) while CPU is running&lt;BR /&gt;Canno&lt;BR /&gt;Unspecified error -1&lt;BR /&gt;Script processing completed.&lt;BR /&gt;Unable to perform operation!&lt;BR /&gt;Command failed with exit code 1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 14:21:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CPU-not-Halted-when-jlink-segger-debug-is-used/m-p/2019732#M67109</guid>
      <dc:creator>RohitKewatLFT</dc:creator>
      <dc:date>2024-12-26T14:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: CPU not Halted when jlink segger debug is used</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CPU-not-Halted-when-jlink-segger-debug-is-used/m-p/2020302#M67111</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234888"&gt;@RohitKewatLFT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your post.&amp;nbsp;I'm very sorry for the late reply. It appears that you are using the programming tool integrated within MCUXpresso. What about JFlash? Does the same problem occur when using it? Besides, are there any abnormal pop-up windows?&lt;BR /&gt;You are currently using JTAG. What will happen if you switch to SWD? You might as well give it a try and let me know the result. This will assist us in locating and resolving the problem more accurately.&lt;/P&gt;
&lt;P&gt;BRs,&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 04:10:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CPU-not-Halted-when-jlink-segger-debug-is-used/m-p/2020302#M67111</guid>
      <dc:creator>Celeste_Liu</dc:creator>
      <dc:date>2024-12-30T04:10:20Z</dc:date>
    </item>
  </channel>
</rss>

