<?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: How to trigger mass erase on somehow locked K32L2A device in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1355341#M61697</link>
    <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/95980"&gt;@jh0&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Please find a guide provided by us that could help you out. Please let me know anything else.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A title="Production Flash Programming Best Practices for Kinetis K- and L-series MCUs" href="https://www.nxp.com/docs/en/application-note/AN4835.pdf" target="_self"&gt;Production Flash Programming Best Practices for Kinetis K- and L-series MCUs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Oct 2021 21:51:39 GMT</pubDate>
    <dc:creator>nxf77486</dc:creator>
    <dc:date>2021-10-13T21:51:39Z</dc:date>
    <item>
      <title>How to trigger mass erase on somehow locked K32L2A device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1354163#M61679</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Due to bad flashing I ended with somehow locked K32L2A device. I am using mcuxpresso with mcu-link probe. New program can not be downloaded, but memory can be read, and here is protection related part ...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="memory.gif" style="width: 661px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/158883i55A5534D81553B33/image-dimensions/661x161?v=v2" width="661" height="161" role="button" title="memory.gif" alt="memory.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Device can not be unlocked / mass erased by mcuxpresso flash tool.&lt;/P&gt;&lt;P&gt;It is very strange to me that mcuxpresso doesn't check for operation success (or I don't know where the right checkbox is). After program is download to device there is no automatic verify, so user think that everything is OK. Same for erase or unlock because result of all this operations is OK (green / blue). Only if dedicate verify against file is executed than will be reported error (red).&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 10:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1354163#M61679</guid>
      <dc:creator>jh0</dc:creator>
      <dc:date>2021-10-12T10:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger mass erase on somehow locked K32L2A device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1354401#M61682</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/95980"&gt;@jh0&lt;/a&gt; ,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Please follow the next guide, on the section Unlocking and Erasing with J-Link Commander.&lt;/P&gt;
&lt;P&gt;&lt;A title="Unlocking and Erasing with J-Link Commander" href="https://mcuoneclipse.com/2014/10/05/unlocking-and-erasing-flash-with-segger-j-link/" target="_blank" rel="noopener"&gt;Unlocking and Erasing with J-Link Commander&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Also let me know any error message (in case of it) if it works also let me know.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 19:04:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1354401#M61682</guid>
      <dc:creator>nxf77486</dc:creator>
      <dc:date>2021-10-12T19:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger mass erase on somehow locked K32L2A device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1354425#M61684</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190340"&gt;@nxf77486&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Unfortunately I don't have Segger probe. AFAIK only MCU-Link Pro can be used as J-Link probe with Segger firmware. MCU-Link non-Pro can't, even Segger firmware can be found inside MCU-Link non-Pro driver pack.&lt;/P&gt;&lt;P&gt;Here is log from MCUXpresso with mass erase executed (with reset target checked) and message that part is not secured (I hope so, that only flash is) ...&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Executing flash operation 'Erase' (Erase flash) - Tue Oct 12 22:03:17 CEST 2021&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Checking MCU info...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Scanning for targets...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Executing flash action...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;MCUXpresso IDE RedlinkMulti Driver v11.4 (Jul 2 2021 12:03:47 - crt_emu_cm_redlink.exe build 1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Reading remote configuration&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Wc(03). No cache support.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Found chip XML file in D:/workspace/K32L2A31A_Project___/Debug\K32L2A31xxxxA.xml&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 5) Remote configuration complete&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Reconnected to existing LinkServer process.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;============= SCRIPT: kinetisconnect.scp =============&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Kinetis Connect Script&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Connecting to Probe Index = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;This probe = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;This TAP = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;This core = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;DpID = 2BA01477&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Assert NRESET&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Reset pin state: 01&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Power up Debug&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;MDM-AP APID: 0x001C0020&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;MDM-AP System Reset/Hold Reset/Debug Request&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;MDM-AP Control: 0x0000001C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;MDM-AP Status (Flash Ready) : 0x008801B2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Part is not secured&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;MDM-AP Control: 0x00000014&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Release NRESET&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Reset pin state: 01&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;MDM-AP Control (Debug Request): 0x00000004&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;MDM-AP Status: 0x008901BA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;MDM-AP Core Halted&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;============= END SCRIPT =============================&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Probe Firmware: MCU-LINK (r0FF) CMSIS-DAP V2.245 (NXP Semiconductors)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Serial Number: XXXXXXXXXX&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;VID:PID: 1FC9:0143&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;USB Path: \\?\hid#vid_1fc9&amp;amp;pid_0143&amp;amp;mi_00#7&amp;amp;29063fc9&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Using memory from core 0 after searching for a good core&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;On debug connection - reset using system reset&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 30) Emulator Connected&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 40) Debug Halt&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 50) CPU ID&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;processor type = Cortex-M0+ (CPU ID 00000C60) on DAP AP 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;number of h/w breakpoints = 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;number of flash patches = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;number of h/w watchpoints = 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Probe(0): Connected&amp;amp;Reset. DpID: 2BA01477. CpuID: 00000C60. Info: &amp;lt;None&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Content of CoreSight Debug ROM(s):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;RBASE F0002000: CID B105100D PID 000008E000 ROM (type 0x1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ROM 1 F0000000: CID B105900D PID 04001BB932 CSt ARM MTB type 0x31 Trace Sink - Basic trace router&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ROM 1 F0001000: CID B105900D PID 000008E000 CSt MTBDWT type 0x4 Debug Control - Other&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ROM 1 F0006000: CID B105900D PID 04000BB9A6 CSt ARM CTIv2 type 0x14 Debug Control - Trigger, e.g. ECT&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ROM 1 E00FF000: CID B105100D PID 04000BB4C0 ROM (type 0x1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ROM 5 E000E000: CID B105E00D PID 04000BB008 Gen SCS (type 0x0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ROM 5 E0001000: CID B105E00D PID 04000BB00A Gen DWT (type 0x0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ROM 5 E0002000: CID B105E00D PID 04000BB00B Gen FPB (type 0x0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;NXP: K32L2A31xxxxA&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;DAP stride is 1024 bytes (256 words)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Inspected v.2 On chip Kinetis Flash memory module K32L2A.cfx&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Image 'Kinetis K32L Jul 12 2021 22:06:17'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Opening flash driver K32L2A.cfx&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Sending VECTRESET to run flash driver&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Flash variant 'K32L2B FTFA 2K' detected (256KB = 128*2K at 0x0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Closing flash driver K32L2A.cfx&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 65) Chip Setup Complete&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Connected: was_reset=false. was_stopped=true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 70) License Check Complete&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Opening flash driver K32L2A.cfx (already resident)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Sending VECTRESET to run flash driver&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Flash variant 'K32L2B FTFA 2K' detected (256KB = 128*2K at 0x0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Mass Erase flash at 0x0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Closing flash driver K32L2A.cfx&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;MassErase completed (in 9ms)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 20:42:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1354425#M61684</guid>
      <dc:creator>jh0</dc:creator>
      <dc:date>2021-10-12T20:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger mass erase on somehow locked K32L2A device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1354476#M61685</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/95980"&gt;@jh0&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Can you please make a image memory dump in order to see the 0x400 memory section in order to discard any security.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Also please send me the command prompt of the error you are receiving in order to have more info.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 00:29:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1354476#M61685</guid>
      <dc:creator>nxf77486</dc:creator>
      <dc:date>2021-10-13T00:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger mass erase on somehow locked K32L2A device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1355008#M61690</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190340"&gt;@nxf77486&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is 0x400 ...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image1.gif" style="width: 662px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/158999i2A40216A5FC19463/image-dimensions/662x144?v=v2" width="662" height="144" role="button" title="Image1.gif" alt="Image1.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I decoded right ...&lt;/P&gt;&lt;P&gt;Backdoor key: 30 30 30 35 30 30 44 34&lt;/P&gt;&lt;P&gt;FPROT: FF FF FF FF&amp;nbsp; flash is protected&lt;/P&gt;&lt;P&gt;reserved FF&lt;/P&gt;&lt;P&gt;reserved FF&lt;/P&gt;&lt;P&gt;FOPT: 46&amp;nbsp; 0100 0110&lt;/P&gt;&lt;P&gt;BIT7-6: 01 Boot reserved&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BIT5: 0 Slow init&amp;nbsp;&amp;nbsp;&amp;nbsp; BIT4,0: 00 VLPR mode&lt;/P&gt;&lt;P&gt;BIT3: 0 Reset pin disabled&amp;nbsp;&amp;nbsp;&amp;nbsp; BIT2: 1 NMI enabled&amp;nbsp;&amp;nbsp;&amp;nbsp; BIT1: 1 Boot source from BIT7-6&lt;/P&gt;&lt;P&gt;FSEC: FE 1111 1110&lt;/P&gt;&lt;P&gt;BIT7-6: 11 Backdoor key access disabled&lt;/P&gt;&lt;P&gt;BIT5-4: 11 Mass erase enabled&lt;/P&gt;&lt;P&gt;BIT3-2: 11 NXP factory access granted&lt;/P&gt;&lt;P&gt;BIT1-0: 10 MCU security status is unsecure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that flash does not change, because verify fail after mass erase or after program with unchanged flash memory contest starting from address zero and so on.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 65) Chip Setup Complete&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Connected: was_reset=true. was_stopped=true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 70) License Check Complete&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Verifying 'K32L2A31A_Project___.axf' ELF code section 0 at 0x00000000 len 0x35A0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Opening flash driver K32L2A.cfx (already resident)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Sending VECTRESET to run flash driver&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Flash variant 'K32L2B FTFA 2K' detected (256KB = 128*2K at 0x0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Flash file verification failed at (at least) these memory addresses&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@@@@00000000 - file 20018000 '... ' != flash 3038303A ':08&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000004&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000004 - file 00000135 '5...' != flash 30303030 '0000'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000008&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000008 - file 000001A3 '....' != flash 38303030 '0008'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x0000000C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@0000000C - file 000006D1 '....' != flash 31464634 '4FF1'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000010&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000010 - file 00000000 '....' != flash 34373946 'F974'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000014&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000014 - file 00000000 '....' != flash 30303030 '0000'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000018&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000018 - file 00000000 '....' != flash 0D463730 '07F.'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x0000001C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@0000001C - file DFFE7657 'Wv..' != flash 30313A0A '.:10'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000020&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000020 - file 00000000 '....' != flash 30303430 '0400'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000024&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000024 - file 00000000 '....' != flash 46463030 '00FF'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000028&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000028 - file 00000000 '....' != flash 46464646 'FFFF'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x0000002C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@0000002C - file 000001A7 '....' != flash 46464646 'FFFF'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000030&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000030 - file 00000000 '....' != flash 46464646 'FFFF'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000034&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000034 - file 00000000 '....' != flash 46464646 'FFFF'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000038&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000038 - file 000001A9 '....' != flash 46464646 'FFFF'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x0000003C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@0000003C - file 000001AB '....' != flash 45464646 'FFFE'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000040&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000040 - file 000001AF '....' != flash 46464433 '3DFF'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000044&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000044 - file 000001B7 '....' != flash 46424646 'FFBF'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x00000048&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@00000048 - file 000001BF '....' != flash 313A0A0D '..:1'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;( 0) Comparing Flash against file at 0x0000004C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;@0000004C - file 000001C7 '....' != flash 30303130 '0100'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Closing flash driver K32L2A.cfx&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;(100) File matches flash.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Read 0x42D88 bytes in 3697ms (about 74kB/s) - verify FAILED&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;(100) Target Connection Failed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Unable to perform operation!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Command failed with exit code 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 13:18:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1355008#M61690</guid>
      <dc:creator>jh0</dc:creator>
      <dc:date>2021-10-13T13:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger mass erase on somehow locked K32L2A device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1355341#M61697</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/95980"&gt;@jh0&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Please find a guide provided by us that could help you out. Please let me know anything else.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A title="Production Flash Programming Best Practices for Kinetis K- and L-series MCUs" href="https://www.nxp.com/docs/en/application-note/AN4835.pdf" target="_self"&gt;Production Flash Programming Best Practices for Kinetis K- and L-series MCUs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 21:51:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1355341#M61697</guid>
      <dc:creator>nxf77486</dc:creator>
      <dc:date>2021-10-13T21:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger mass erase on somehow locked K32L2A device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1356042#M61709</link>
      <description>&lt;P&gt;I unlocked device by triggering mass erase with writing right value (mass erase under reset, because reset pin was disabled) to MDM-AP control register. I started once with development of my own hardware / software SWD tool (never finished), so used this because didn't found anything for low level SWD operations by CMSIS-DAP using MCU-Link.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;; Select MDM-AP control reg&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SWD_REG_WRITE DP_RESEND_SELECT, ((001h &amp;lt;&amp;lt; 24) | (001h &amp;lt;&amp;lt; 2))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;; Set BIT3 to force a system reset. Set BIT0 to cause mass erase.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SWD_REG_WRITE_AD AP_DRW, (BIT3 | BIT0)&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I really don't understand why this is not covered by mass erase in MCUXpresso.&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;After device was unlocked I found note inside device reference manual (9.4.1 MDM-AP Control Register) related to my case. It was in front of my eyes all the time, but I didn't see it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="note.jpg" style="width: 475px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/159172iCDA3B4C92BA9CAA9/image-dimensions/475x76?v=v2" width="475" height="76" role="button" title="note.jpg" alt="note.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am not sure if solution by Erich Styger using j-link should help in my case. Because here ...&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.segger.com/Kinetis_Series_Devices" target="_blank"&gt;https://wiki.segger.com/Kinetis_Series_Devices&lt;/A&gt;&lt;/P&gt;&lt;P&gt;there is ...&lt;/P&gt;&lt;P&gt;&lt;EM&gt;It is mandatory to connect the reset pin of the Kinetis devices to J-Link. Otherwise, proper functionality and a stable connection cannot be guaranteed.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; The Kinetis manuals advertise that a reset can also be issued via the MDM-AP, so no pin is required. However, this way is unreliable and does not work properly when trying to unsecure a secured device.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;... and on my device reset pin was disabled.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 04:58:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-trigger-mass-erase-on-somehow-locked-K32L2A-device/m-p/1356042#M61709</guid>
      <dc:creator>jh0</dc:creator>
      <dc:date>2021-10-15T04:58:24Z</dc:date>
    </item>
  </channel>
</rss>

