<?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 S32K142 Cannot Erase Flash And Programing in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K142-Cannot-Erase-Flash-And-Programing/m-p/1630593#M21951</link>
    <description>&lt;P&gt;&amp;nbsp;I want to use jlink to debug the project but the IDE report&amp;nbsp; some error,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="weLiyan_0-1681137895253.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/218552i9AD71D85CB3A2EC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="weLiyan_0-1681137895253.png" alt="weLiyan_0-1681137895253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to use jlink commender to Unlock mcu，but didnot work,how can i do?&lt;/P&gt;&lt;P&gt;tanks to answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connecting to target via SWD&lt;BR /&gt;InitTarget()&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&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;FPUnit: 6 code (BP) slots and 2 literal slots&lt;BR /&gt;CoreSight components:&lt;BR /&gt;ROMTbl[0] @ E00FF000&lt;BR /&gt;ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7&lt;BR /&gt;ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT&lt;BR /&gt;ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB&lt;BR /&gt;ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM&lt;BR /&gt;ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU&lt;BR /&gt;Cortex-M4 identified.&lt;BR /&gt;J-Link&amp;gt;R0&lt;BR /&gt;J-Link&amp;gt;swdwritedp 2,0x01000000&lt;BR /&gt;Write DP register 2 = 0x01000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000033&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000033&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000004&lt;BR /&gt;J-Link&amp;gt;swdwriteap 1,0x1&lt;BR /&gt;Write AP register 1 = 0x00000001&lt;BR /&gt;J-Link&amp;gt;swdwriteap 1,0x1&lt;BR /&gt;Write AP register 1 = 0x00000001&lt;BR /&gt;J-Link&amp;gt;erase&lt;/P&gt;&lt;P&gt;**************************&lt;BR /&gt;WARNING: CPU could not be halted&lt;BR /&gt;**************************&lt;/P&gt;&lt;P&gt;Erasing device...&lt;/P&gt;&lt;P&gt;**************************&lt;BR /&gt;WARNING: CPU could not be halted&lt;BR /&gt;**************************&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;****** Error: Can not read register 16 (XPSR) while CPU is running&lt;BR /&gt;Can not read register 20 (CFBP) while CPU is running&lt;BR /&gt;Can not read register 0 (R0) while CPU is running&lt;BR /&gt;Can not read register 1 (R1) while CPU is running&lt;BR /&gt;Can not read register 2 (R2) while CPU is running&lt;BR /&gt;Can not read register 3 (R3) while CPU is running&lt;BR /&gt;Can not read register 4 (R4) while CPU is running&lt;BR /&gt;Can not read register 5 (R5) while CPU is running&lt;BR /&gt;Can not read register 6 (R6) while CPU is running&lt;BR /&gt;Can not read register 7 (R7) while CPU is running&lt;BR /&gt;Can not read register 8 (R8) while CPU is running&lt;BR /&gt;Can not read register 9 (R9) while CPU is running&lt;BR /&gt;Can not read register 10 (R10) while CPU is running&lt;BR /&gt;Can not read register 11 (R11) while CPU is running&lt;BR /&gt;Can not read register 12 (R12) while CPU is running&lt;BR /&gt;Can not read register 14 (R14) while CPU is running&lt;BR /&gt;Can not read register 15 (R15) while CPU is running&lt;BR /&gt;Can not read register 17 (MSP) while CPU is running&lt;BR /&gt;Can not read register 18 (PSP) while CPU is running&lt;/P&gt;&lt;P&gt;****** Error: Verification of RAMCode failed @ address 0x1FFFC000.&lt;BR /&gt;Write: 0xA801BE00 F0009900&lt;BR /&gt;Read: 0x00000000 00000000&lt;BR /&gt;Failed to prepare for programming.&lt;BR /&gt;Failed to download RAMCode!&lt;BR /&gt;ERROR: Erase returned with error code -1.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2023 14:47:48 GMT</pubDate>
    <dc:creator>weLiyan</dc:creator>
    <dc:date>2023-04-10T14:47:48Z</dc:date>
    <item>
      <title>S32K142 Cannot Erase Flash And Programing</title>
      <link>https://community.nxp.com/t5/S32K/S32K142-Cannot-Erase-Flash-And-Programing/m-p/1630593#M21951</link>
      <description>&lt;P&gt;&amp;nbsp;I want to use jlink to debug the project but the IDE report&amp;nbsp; some error,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="weLiyan_0-1681137895253.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/218552i9AD71D85CB3A2EC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="weLiyan_0-1681137895253.png" alt="weLiyan_0-1681137895253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to use jlink commender to Unlock mcu，but didnot work,how can i do?&lt;/P&gt;&lt;P&gt;tanks to answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connecting to target via SWD&lt;BR /&gt;InitTarget()&lt;BR /&gt;Timeout while halting CPU.&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&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;FPUnit: 6 code (BP) slots and 2 literal slots&lt;BR /&gt;CoreSight components:&lt;BR /&gt;ROMTbl[0] @ E00FF000&lt;BR /&gt;ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7&lt;BR /&gt;ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT&lt;BR /&gt;ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB&lt;BR /&gt;ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM&lt;BR /&gt;ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU&lt;BR /&gt;Cortex-M4 identified.&lt;BR /&gt;J-Link&amp;gt;R0&lt;BR /&gt;J-Link&amp;gt;swdwritedp 2,0x01000000&lt;BR /&gt;Write DP register 2 = 0x01000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000000&lt;BR /&gt;J-Link&amp;gt;swdreadap 0&lt;BR /&gt;Read AP register 0 = 0x00000033&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000033&lt;BR /&gt;J-Link&amp;gt;swdreadap 1&lt;BR /&gt;Read AP register 1 = 0x00000004&lt;BR /&gt;J-Link&amp;gt;swdwriteap 1,0x1&lt;BR /&gt;Write AP register 1 = 0x00000001&lt;BR /&gt;J-Link&amp;gt;swdwriteap 1,0x1&lt;BR /&gt;Write AP register 1 = 0x00000001&lt;BR /&gt;J-Link&amp;gt;erase&lt;/P&gt;&lt;P&gt;**************************&lt;BR /&gt;WARNING: CPU could not be halted&lt;BR /&gt;**************************&lt;/P&gt;&lt;P&gt;Erasing device...&lt;/P&gt;&lt;P&gt;**************************&lt;BR /&gt;WARNING: CPU could not be halted&lt;BR /&gt;**************************&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;****** Error: Can not read register 16 (XPSR) while CPU is running&lt;BR /&gt;Can not read register 20 (CFBP) while CPU is running&lt;BR /&gt;Can not read register 0 (R0) while CPU is running&lt;BR /&gt;Can not read register 1 (R1) while CPU is running&lt;BR /&gt;Can not read register 2 (R2) while CPU is running&lt;BR /&gt;Can not read register 3 (R3) while CPU is running&lt;BR /&gt;Can not read register 4 (R4) while CPU is running&lt;BR /&gt;Can not read register 5 (R5) while CPU is running&lt;BR /&gt;Can not read register 6 (R6) while CPU is running&lt;BR /&gt;Can not read register 7 (R7) while CPU is running&lt;BR /&gt;Can not read register 8 (R8) while CPU is running&lt;BR /&gt;Can not read register 9 (R9) while CPU is running&lt;BR /&gt;Can not read register 10 (R10) while CPU is running&lt;BR /&gt;Can not read register 11 (R11) while CPU is running&lt;BR /&gt;Can not read register 12 (R12) while CPU is running&lt;BR /&gt;Can not read register 14 (R14) while CPU is running&lt;BR /&gt;Can not read register 15 (R15) while CPU is running&lt;BR /&gt;Can not read register 17 (MSP) while CPU is running&lt;BR /&gt;Can not read register 18 (PSP) while CPU is running&lt;/P&gt;&lt;P&gt;****** Error: Verification of RAMCode failed @ address 0x1FFFC000.&lt;BR /&gt;Write: 0xA801BE00 F0009900&lt;BR /&gt;Read: 0x00000000 00000000&lt;BR /&gt;Failed to prepare for programming.&lt;BR /&gt;Failed to download RAMCode!&lt;BR /&gt;ERROR: Erase returned with error code -1.&lt;BR /&gt;J-Link&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 14:47:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K142-Cannot-Erase-Flash-And-Programing/m-p/1630593#M21951</guid>
      <dc:creator>weLiyan</dc:creator>
      <dc:date>2023-04-10T14:47:48Z</dc:date>
    </item>
  </channel>
</rss>

