<?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: KW36 Erase failure in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW36-Erase-failure/m-p/954968#M54867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/nsuresh2@visteon.com"&gt;nsuresh2@visteon.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;You can use J-Flash Lite to erase chip.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86282i981FB8C88F40AFF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2019 05:48:24 GMT</pubDate>
    <dc:creator>xing_chang</dc:creator>
    <dc:date>2019-08-06T05:48:24Z</dc:date>
    <item>
      <title>KW36 Erase failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW36-Erase-failure/m-p/954967#M54866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/XingChang"&gt;XingChang&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;I am working on KW36 micro and I am using J Link Plus debugger to flash the firmware using J Link commander v6.44.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;For one of our application, I need to do read/write/erase part of the internal flash. Which caused the device unusable. Tried to do unlock as per the instructions from JLink unlock is successful but fails in erasing the flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Please find the below and attached logs from J Link commander:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;J-Link&amp;gt;connect&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Please specify device/core. &amp;lt;Default&amp;gt;: MKW36Z512XXX4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Type '?' for selection dialog&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Device&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Please specify the target interface:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI style="color: #666666;"&gt;&lt;SPAN style="font-size: 10.5pt;"&gt;J) JTAG (Default)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: #666666;"&gt;&lt;SPAN style="font-size: 10.5pt;"&gt;S) SWD&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: #666666;"&gt;&lt;SPAN style="font-size: 10.5pt;"&gt;T) cJTAG&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;TIF&amp;gt;s&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Specify the target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Speed&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Device "MKW36Z512XXX4" selected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Connecting to target via SWD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;InitTarget()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Readout protection is set and mass erase is disabled. J-Link cannot unprotect th&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;e device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Found SW-DP with ID 0x0BC11477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Scanning AP map to find all available APs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;AP[2]: Stopped AP scan as end of AP map has been reached&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;AP[0]: AHB-AP (IDR: 0x04770031)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;AP[1]: JTAG-AP (IDR: 0x001C0020)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Iterating through AP map to find AHB-AP to use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;AP[0]: Core found&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;AP[0]: AHB-AP ROM base: 0xF0002000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Found Cortex-M0 r0p1, Little endian.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;FPUnit: 2 code (BP) slots and 0 literal slots&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;CoreSight components:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;ROMTbl[0] @ F0002000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;ROMTbl[0][0]: F0000000, CID: B105900D, PID: 001BB932 MTB-M0+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;ROMTbl[0][1]: F0001000, CID: B105900D, PID: 0008E000 MTBDWT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;ROMTbl[0][2]: E00FF000, CID: B105100D, PID: 000BB4C0 ROM Table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;ROMTbl[1] @ E00FF000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Cortex-M0 identified.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;J-Link&amp;gt;unlock Kinetis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Found SWD-DP with ID 0x0BC11477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Unlocking device...O.K.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;J-Link&amp;gt;erase&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Erasing device...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;****** Error: Failed to erase sectors 0 @ address 0x00000000 (Unspecified error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;#2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;J-Link: Flash download: Total time needed: 0.066s (Prepare: 0.055s, Compare: 0.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;00s, Erase: 0.005s, Program: 0.000s, Verify: 0.000s, Restore: 0.005s)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;ERROR: Erase returned with error code -5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;J-Link&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;Regards,&lt;BR /&gt;Naven Suresh&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 05:25:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW36-Erase-failure/m-p/954967#M54866</guid>
      <dc:creator>nsuresh2</dc:creator>
      <dc:date>2019-08-06T05:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 Erase failure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW36-Erase-failure/m-p/954968#M54867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/nsuresh2@visteon.com"&gt;nsuresh2@visteon.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;You can use J-Flash Lite to erase chip.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86282i981FB8C88F40AFF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 05:48:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KW36-Erase-failure/m-p/954968#M54867</guid>
      <dc:creator>xing_chang</dc:creator>
      <dc:date>2019-08-06T05:48:24Z</dc:date>
    </item>
  </channel>
</rss>

