<?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: Unlocking K20 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377361#M19945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui Shao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We don't have I-Jet tool on hand, we don't have chance to try if I-Jet tool could unlock the Kinetis chip.&lt;/P&gt;&lt;P&gt;While, I had contacted with IAR about this issue before, the feedback is there with new firmware for I-Jet tool, which could support unlock the Kinetis chip.&lt;/P&gt;&lt;P&gt;So, Please check with IAR engineer about I-Jet firmware update issue with below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.iar.com/Service-Center/Technical-Support/" title="http://www.iar.com/Service-Center/Technical-Support/"&gt;http://www.iar.com/Service-Center/Technical-Support/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;BR /&gt;best regards &lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2014 06:31:37 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2014-12-09T06:31:37Z</dc:date>
    <item>
      <title>Unlocking K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377354#M19938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been using the K20 on a small project and I had the unlocking problem that is widely reported almost every single time but this last board I believe does not want to be unlocked.&lt;/P&gt;&lt;P&gt;Following is the output from the erase_all_pin.jlk when run keeping the reset pin grounded, can you please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;SEGGER J-Link Commander V4.90c ('?' for help)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Compiled Aug 29 2014 09:52:38&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Script file read successfully.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;DLL version V4.90c, compiled Aug 29 2014 09:52:33&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Hardware: V7.00&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;S/N: 20090928&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;VTarget = 3.300V&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;No devices found on JTAG chain. Trying to find device on SWD.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;****** Error: Error while identifying Cortex-M core.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;No device found on SWD.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Failed to identify target. Trying again with slow (4 kHz) speed.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;No devices found on JTAG chain. Trying to find device on SWD.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;****** Error: Error while identifying Cortex-M core.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;No device found on SWD.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;No device found at all. Selecting JTAG as default target interface.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Processing script file...&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Target interface speed: 1000 kHz&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Reset type UNKNOWN: ???&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Reset delay: 0 ms&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Reset type UNKNOWN: ???&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;PC: (R15) = 00000000, CPSR = 00000000 (Unknown mode, ARM)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;USR: R8 =00000000, R9 =00000000, R10=00000000, R11 =00000000, R12 =00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R13=00000000, R14=00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;FIQ: R8 =00000000, R9 =00000000, R10=00000000, R11 =00000000, R12 =00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R13=00000000, R14=00000000, SPSR=00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;SVC: R13=00000000, R14=00000000, SPSR=00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;ABT: R13=00000000, R14=00000000, SPSR=00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;IRQ: R13=00000000, R14=00000000, SPSR=00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;UND: R13=00000000, R14=00000000, SPSR=00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(1000)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Selecting SWD as current target interface.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Setting target interface speed to 1MHz. Use "Speed" to change.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Select SWD by sending SWD switching sequence.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Write DP register 2 = 0x01000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 0 = 0x00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 0 = 0x00000034&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 1 = 0x0000003E&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 1 = 0x00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 0 = 0x00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 0 = 0x00000036&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Write AP register 1 = 0x00000001&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(1000)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 0 = 0x00000036&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 0 = 0x00000034&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 1 = 0x00000034&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 1 = 0x00000001&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(100)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Write DP register 2 = 0x00000000&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(1000)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Selecting JTAG as current target interface.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Setting target interface speed to 1MHz. Use "Speed" to change.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(100)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Reset delay: 0 ms&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Reset type UNKNOWN: ???&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Script processing completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;################################################################################&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Edit after some experiments:&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;connected the reset to GND and re-run the script and I can see that the device is indeed secured but it seems like the mass erase is enabled if I read this register correctly.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 0 = 0x00000036&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Now if I try to force a mass erase setting bit 0 of the control register I assume I should see mass erase start with bit 0 of th status register confirming (Flash Mass Erase Acknowledge) that but I do not see that like the chip is not taking the command.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Write AP register 1 = 0x00000001&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 0 = 0x00000036&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 0 = 0x00000036&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 0 = 0x00000036&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Read AP register 0 = 0x00000036&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Has anyone seen something like this?&amp;nbsp; Is there a way to get out of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Gianluca Barbieri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 18:28:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377354#M19938</guid>
      <dc:creator>mofo</dc:creator>
      <dc:date>2014-11-27T18:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unlocking K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377355#M19939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From MDM-AP status register value 0x36, it shows the K20 chip is secured.&lt;/P&gt;&lt;P&gt;Customer can try to use Segger provided J-Link Commander tool and run "unlock Kinetis" commander to unsecure the K20 chip.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;BR /&gt;best regards &lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 06:05:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377355#M19939</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-12-01T06:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unlocking K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377356#M19940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the problem when I try to connect with JLinkExe it fails because it cannot unlock the device and switches to JTAG.&amp;nbsp; Now after that when I try to bring it back to SWD it fails because it says it cannot write Control/Status register .. here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Select SWD by sending SWD switching sequence.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;ERROR: Could not write Ctrl/Stat register.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Sleep(10)&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;So since I cannot at that point switch to SWD I cannot even try to use the unlock command.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Isn't the unlock_all_pin.jlk script supposed to do the exact same thing?&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Let me know it I can try something else ... It appears that I incur in this quite a few times but in the past I have been lucky and everything went back to ok after a few attempts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 06:17:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377356#M19940</guid>
      <dc:creator>mofo</dc:creator>
      <dc:date>2014-12-01T06:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unlocking K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377357#M19941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what happen when I add the "unlock kinetis" in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;****** Error: Kinetis (connect): Timeout while unsecuring device. Erase never starts.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Kinetis (connect): Failed to unsecure Kinetis device.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Secured Kinetis device detected. For debugger connection the device needs to be unsecured.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Device will be unsecured now.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;****** Error: Kinetis (connect): Timeout while unsecuring device. Erase never starts.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Kinetis (connect): Failed to unsecure Kinetis device.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Info: Secured Kinetis device detected. For debugger connection the device needs to be unsecured.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Device will be unsecured now.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;As I could reproduce manually the mass erase does not start for some reason even if enabled.&amp;nbsp; Is it possible that there is another flag somewhere else that is preventing the Flash to be erased like the MEEN or SEC?&amp;nbsp; is it possible to access those registers with the CPU in reset? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 06:25:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377357#M19941</guid>
      <dc:creator>mofo</dc:creator>
      <dc:date>2014-12-01T06:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unlocking K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377358#M19942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Flash configuration field (flash address 0x40C) value will be loaded to FTFE_FSEC register during the K20 boot up.&lt;/P&gt;&lt;P&gt;The [MEEN] bit with value 0b10 to set mass erase be disabled, that will cause the debug write MDM-AP control register bit0 operation unavailable.&lt;/P&gt;&lt;P&gt;Customer can check Flash programmed image at flash address 0x40C value to check FTFE_FSEC [MEEN] bit value.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;BR /&gt;best regards &lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 07:16:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377358#M19942</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-12-01T07:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unlocking K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377359#M19943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If K20 was secured, the chip registers could not be accessed via JTAG/SWD interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 07:18:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377359#M19943</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-12-01T07:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unlocking K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377360#M19944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using IAR 7.20 and I-jet for k20d50m. Is there a way to unlock my devices through I-jet? I have read through many threads on this community for unlocking, but most of them are using J-link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hui Shao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 17:14:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377360#M19944</guid>
      <dc:creator>huishao2</dc:creator>
      <dc:date>2014-12-08T17:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unlocking K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377361#M19945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui Shao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We don't have I-Jet tool on hand, we don't have chance to try if I-Jet tool could unlock the Kinetis chip.&lt;/P&gt;&lt;P&gt;While, I had contacted with IAR about this issue before, the feedback is there with new firmware for I-Jet tool, which could support unlock the Kinetis chip.&lt;/P&gt;&lt;P&gt;So, Please check with IAR engineer about I-Jet firmware update issue with below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.iar.com/Service-Center/Technical-Support/" title="http://www.iar.com/Service-Center/Technical-Support/"&gt;http://www.iar.com/Service-Center/Technical-Support/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;BR /&gt;best regards &lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 06:31:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unlocking-K20/m-p/377361#M19945</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-12-09T06:31:37Z</dc:date>
    </item>
  </channel>
</rss>

