<?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: Ezport broken when MCU security status is secure in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583982#M34504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jorge,&lt;/P&gt;&lt;P&gt;&amp;nbsp; We still have not been able to reproduce the original problem.&amp;nbsp; So I've just been assuming that the original problem is the same problem that I can make happen with the Jlink.&amp;nbsp; The good news is that doing the BE command, then programming as usual seems to bring the part out of security mode.&amp;nbsp; So I'd like to mark this discussion as resolved until we can reproduce the original problem and hopefully see if the changes I've made to our Ezport programming code fixes it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for all the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2016 15:35:54 GMT</pubDate>
    <dc:creator>rickbronson</dc:creator>
    <dc:date>2016-08-09T15:35:54Z</dc:date>
    <item>
      <title>Ezport broken when MCU security status is secure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583976#M34498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; We have been seeing an issue with the MK20FN1M0VMD12 that happens very&lt;/P&gt;&lt;P&gt;randomly that ends up causing the Ezport to be broken.&amp;nbsp; The only way&lt;/P&gt;&lt;P&gt;we have figured out to get out of this scenario is using "unlock&lt;/P&gt;&lt;P&gt;kinetis" via the JLINK debugger.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Unfortunately, we have not figured out what causes the part to get&lt;/P&gt;&lt;P&gt;into this mode but we are working on it.&amp;nbsp; Separately, I was able to&lt;/P&gt;&lt;P&gt;get the part into this mode via the JLINK with these commands:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;loadfile file1.bin&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;r&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;g&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;loadfile file2.bin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Nothing special about these two files, they are both valid K20&lt;/P&gt;&lt;P&gt;executables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; At this point the JLINK spits out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J-Link: Flash download: Restarting flash programming due to program error (possibly skipped erasure of half-way erased sector).&lt;/P&gt;&lt;P&gt;J-Link: Flash download: Skip optimizations disabled for second try.&lt;/P&gt;&lt;P&gt;Error while programming flash: Programming failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The following debug output yields (I annotated some stuff below with&lt;/P&gt;&lt;P&gt;---&amp;gt;):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;h&amp;nbsp; &lt;/P&gt;&lt;P&gt;r0 //system reset&amp;nbsp; &lt;/P&gt;&lt;P&gt;writedp 2, 0x01000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //select MDM-AP&amp;nbsp; &lt;/P&gt;&lt;P&gt;readap 0&amp;nbsp; &lt;/P&gt;&lt;P&gt;sleep 10&amp;nbsp; &lt;/P&gt;&lt;P&gt;readap 0 // read MDM-AP register status&lt;/P&gt;&lt;P&gt;Reading AP register 0 = 0x00000037 (0 read repetitions needed)&lt;/P&gt;&lt;P&gt;---&amp;gt; System Security bit set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;mem 0x40020000 20 // FTFE memory map&lt;/P&gt;&lt;P&gt;40020000 = 90 06 CA 11 00 10 01 09 00 00 00 00 00 00 00 00 &lt;/P&gt;&lt;P&gt;40020010 = CB 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 &lt;/P&gt;&lt;P&gt;---&amp;gt;Flash Option Register(40020003)=EzPort operation is enabled&lt;/P&gt;&lt;P&gt;---&amp;gt;Flash Protection Violation Flag&lt;/P&gt;&lt;P&gt;---&amp;gt;Freescale Failure Analysis Access Code=Freescale factory access denied&lt;/P&gt;&lt;P&gt;---&amp;gt;Program Flash Protection Registers=different&lt;/P&gt;&lt;P&gt;---&amp;gt;Backdoor Access Key Enable(40020002)=Backdoor key access disabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;mem 0x400 10&lt;/P&gt;&lt;P&gt;00000400 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;/P&gt;&lt;P&gt;---&amp;gt;Flash Security Register=MCU security status is secure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So at this point when the Ezport is used to program, not even this&lt;/P&gt;&lt;P&gt;command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EZPORT_RDSR&amp;nbsp; 0x05&amp;nbsp; /* Read Status Register */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; works.&amp;nbsp; The return value is 0xff.&amp;nbsp; According to Table 31-2 of&lt;/P&gt;&lt;P&gt;K20P144M120SF3RM.pdf, this command should function even if the part is&lt;/P&gt;&lt;P&gt;secure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Any ideas/comments greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 16:26:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583976#M34498</guid>
      <dc:creator>rickbronson</dc:creator>
      <dc:date>2016-07-18T16:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ezport broken when MCU security status is secure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583977#M34499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick Bronson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if I misunderstand something, but you overlap file1.bin and file2.bin?&lt;/P&gt;&lt;P&gt;What do you get when you do "unlock kinetis"? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you do the following steps and tell me what is the output that you get?&lt;/P&gt;&lt;P&gt;1. Launch Jlink.exe, use "Device MK20FN1M0XXX12" and use "erase" command (without connect)&lt;/P&gt;&lt;P&gt;2. After you receive "Erasing done" message, use "unlock kinetis" command.&lt;/P&gt;&lt;P&gt;3. After you get the "Unlocking device ... O.K". Use "connect" command.&lt;/P&gt;&lt;P&gt;4. Use "mem 0x400 10".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me what is the output of the step 4, or if you receive an error in the steps please tell me what you get.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day.&lt;BR /&gt;Jorge Alcala&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>Wed, 20 Jul 2016 00:14:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583977#M34499</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2016-07-20T00:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ezport broken when MCU security status is secure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583978#M34500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks so much for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The intention was not to overlap files.&amp;nbsp; I did this by mistake but&lt;/P&gt;&lt;P&gt;noticed that it put the K20 into the same mode that we have been&lt;/P&gt;&lt;P&gt;seeing occasionally.&amp;nbsp; That mode being the inability to use Ezport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I followed your steps and below is the output.&amp;nbsp; Please tell me if&lt;/P&gt;&lt;P&gt;&amp;nbsp; you need more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Rick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------------&lt;/P&gt;&lt;P&gt;/opt/SEGGER/JLink/JLinkExe -device MK20FN1M0xxx12 -if JTAG -speed 4000 -JTAGConf -1,-1&lt;/P&gt;&lt;P&gt;SEGGER J-Link Commander V5.10g (Compiled Jan&amp;nbsp; 6 2016 13:54:12)&lt;/P&gt;&lt;P&gt;DLL version V5.10g, compiled Jan&amp;nbsp; 6 2016 13:54:07&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connecting to J-Link via USB...O.K.&lt;/P&gt;&lt;P&gt;Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04&lt;/P&gt;&lt;P&gt;Hardware version: V7.00&lt;/P&gt;&lt;P&gt;S/N: 20090928&lt;/P&gt;&lt;P&gt;License(s): RDI,FlashDL,FlashBP,JFlash,GDBFull&lt;/P&gt;&lt;P&gt;Emulator has Trace capability&lt;/P&gt;&lt;P&gt;VTref = 3.300V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type "connect" to establish a target connection, '?' for help&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;erase&lt;/P&gt;&lt;P&gt;Target connection not established yet but required for command.&lt;/P&gt;&lt;P&gt;Device "MK20FN1M0XXX12" selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TotalIRLen = 4, IRPrint = 0x01&lt;/P&gt;&lt;P&gt;TotalIRLen = 4, IRPrint = 0x01&lt;/P&gt;&lt;P&gt;Found Cortex-M4 r0p1, Little endian.&lt;/P&gt;&lt;P&gt;FPUnit: 6 code (BP) slots and 2 literal slots&lt;/P&gt;&lt;P&gt;CoreSight components:&lt;/P&gt;&lt;P&gt;ROMTbl 0 @ E00FF000&lt;/P&gt;&lt;P&gt;ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS&lt;/P&gt;&lt;P&gt;ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT&lt;/P&gt;&lt;P&gt;ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB&lt;/P&gt;&lt;P&gt;ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM&lt;/P&gt;&lt;P&gt;ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU&lt;/P&gt;&lt;P&gt;ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM&lt;/P&gt;&lt;P&gt;ROMTbl 0 [6]: FFF43000, CID: B105900D, PID: 003BB907 ETB&lt;/P&gt;&lt;P&gt;ROMTbl 0 [7]: FFF44000, CID: B105900D, PID: 001BB908 CSTF&lt;/P&gt;&lt;P&gt;Found 1 JTAG device, Total IRLen = 4:&lt;/P&gt;&lt;P&gt; #0 Id: 0x4BA00477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)&lt;/P&gt;&lt;P&gt;Cortex-M4 identified.&lt;/P&gt;&lt;P&gt;Erasing device (MK20FN1M0xxx12)...&lt;/P&gt;&lt;P&gt;Comparing flash&amp;nbsp;&amp;nbsp; [100%] Done.&lt;/P&gt;&lt;P&gt;Erasing flash&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [100%] Done.&lt;/P&gt;&lt;P&gt;Verifying flash&amp;nbsp;&amp;nbsp; [100%] Done.&lt;/P&gt;&lt;P&gt;J-Link: Flash download: Total time needed: 1.977s (Prepare: 0.406s, Compare: 0.000s, Erase: 1.547s, Program: 0.000s, Verify: 0.000s, Restore: 0.023s)&lt;/P&gt;&lt;P&gt;Erasing done.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;unlock kinetis&lt;/P&gt;&lt;P&gt;Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P&gt;Unlocking device...O.K.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;connect&lt;/P&gt;&lt;P&gt;Device "MK20FN1M0XXX12" selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TotalIRLen = 4, IRPrint = 0x01&lt;/P&gt;&lt;P&gt;TotalIRLen = 4, IRPrint = 0x01&lt;/P&gt;&lt;P&gt;Found Cortex-M4 r0p1, Little endian.&lt;/P&gt;&lt;P&gt;FPUnit: 6 code (BP) slots and 2 literal slots&lt;/P&gt;&lt;P&gt;CoreSight components:&lt;/P&gt;&lt;P&gt;ROMTbl 0 @ E00FF000&lt;/P&gt;&lt;P&gt;ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS&lt;/P&gt;&lt;P&gt;ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT&lt;/P&gt;&lt;P&gt;ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB&lt;/P&gt;&lt;P&gt;ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM&lt;/P&gt;&lt;P&gt;ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU&lt;/P&gt;&lt;P&gt;ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM&lt;/P&gt;&lt;P&gt;ROMTbl 0 [6]: FFF43000, CID: B105900D, PID: 003BB907 ETB&lt;/P&gt;&lt;P&gt;ROMTbl 0 [7]: FFF44000, CID: B105900D, PID: 001BB908 CSTF&lt;/P&gt;&lt;P&gt;Found 1 JTAG device, Total IRLen = 4:&lt;/P&gt;&lt;P&gt; #0 Id: 0x4BA00477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)&lt;/P&gt;&lt;P&gt;Cortex-M4 identified.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;mem 0x400 10&lt;/P&gt;&lt;P&gt;00000400 = FF FF FF FF FF FF FF FF FF FF FF FF FE FF FF FF &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 15:54:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583978#M34500</guid>
      <dc:creator>rickbronson</dc:creator>
      <dc:date>2016-07-20T15:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ezport broken when MCU security status is secure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583979#M34501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently consulting your information with some colleagues, I will test some configuration and keep you inform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to be sure, you can manage to run the EZport if you device is no secured, right? or this behavior is in both cases (secured and unsecured). Also you can confirm that the EZP_CS pin is as it should during reset? &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 01:23:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583979#M34501</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2016-07-21T01:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ezport broken when MCU security status is secure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583980#M34502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks again for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes the Ezport works 100% of the time UNLESS we are in this stange&lt;/P&gt;&lt;P&gt;mode.&amp;nbsp; The K20 is programmed via Ezport from a iMX53.&amp;nbsp; We've really&lt;/P&gt;&lt;P&gt;tested the Ezport programming quite a lot, even interrupting it while&lt;/P&gt;&lt;P&gt;in the middle of programming, and it's pretty solid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; It occurred to me that maybe you wanted me to do the erase (without&lt;/P&gt;&lt;P&gt;connect), unlock kinetis, connect, and mem 0x400 10 commands when I&lt;/P&gt;&lt;P&gt;was in the secure mode.&amp;nbsp; I did that and the log is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I put file1.bin and file2.bin here if you wanted to try something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fmembers.efn.org%2F%7Erick%2Fpub%2Fspringdale%2Ffile1.bin" rel="nofollow" target="_blank"&gt;http://members.efn.org/~rick/pub/springdale/file1.bin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fmembers.efn.org%2F%7Erick%2Fpub%2Fspringdale%2Ffile2.bin" rel="nofollow" target="_blank"&gt;http://members.efn.org/~rick/pub/springdale/file2.bin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Rick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------------&lt;/P&gt;&lt;P&gt;/opt/SEGGER/JLink/JLinkExe -device MK20FN1M0xxx12 -if JTAG -speed 4000 -JTAGConf -1,-1 -AutoConnect 1&lt;/P&gt;&lt;P&gt;SEGGER J-Link Commander V5.10g (Compiled Jan&amp;nbsp; 6 2016 13:54:12)&lt;/P&gt;&lt;P&gt;DLL version V5.10g, compiled Jan&amp;nbsp; 6 2016 13:54:07&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connecting to J-Link via USB...O.K.&lt;/P&gt;&lt;P&gt;Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04&lt;/P&gt;&lt;P&gt;Hardware version: V7.00&lt;/P&gt;&lt;P&gt;S/N: 20090928&lt;/P&gt;&lt;P&gt;License(s): RDI,FlashDL,FlashBP,JFlash,GDBFull&lt;/P&gt;&lt;P&gt;Emulator has Trace capability&lt;/P&gt;&lt;P&gt;VTref = 3.300V&lt;/P&gt;&lt;P&gt;Device "MK20FN1M0XXX12" selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TotalIRLen = 4, IRPrint = 0x01&lt;/P&gt;&lt;P&gt;TotalIRLen = 4, IRPrint = 0x01&lt;/P&gt;&lt;P&gt;Found Cortex-M4 r0p1, Little endian.&lt;/P&gt;&lt;P&gt;FPUnit: 6 code (BP) slots and 2 literal slots&lt;/P&gt;&lt;P&gt;CoreSight components:&lt;/P&gt;&lt;P&gt;ROMTbl 0 @ E00FF000&lt;/P&gt;&lt;P&gt;ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS&lt;/P&gt;&lt;P&gt;ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT&lt;/P&gt;&lt;P&gt;ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB&lt;/P&gt;&lt;P&gt;ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM&lt;/P&gt;&lt;P&gt;ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU&lt;/P&gt;&lt;P&gt;ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM&lt;/P&gt;&lt;P&gt;ROMTbl 0 [6]: FFF43000, CID: B105900D, PID: 003BB907 ETB&lt;/P&gt;&lt;P&gt;ROMTbl 0 [7]: FFF44000, CID: B105900D, PID: 001BB908 CSTF&lt;/P&gt;&lt;P&gt;Found 1 JTAG device, Total IRLen = 4:&lt;/P&gt;&lt;P&gt; #0 Id: 0x4BA00477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)&lt;/P&gt;&lt;P&gt;Cortex-M4 identified.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;loadfile /opt/springdale/rd/opt/testing/bin/k20_test.bin&lt;/P&gt;&lt;P&gt;Downloading file [/opt/springdale/rd/opt/testing/bin/k20_test.bin]...&lt;/P&gt;&lt;P&gt;Comparing flash&amp;nbsp;&amp;nbsp; [100%] Done.&lt;/P&gt;&lt;P&gt;Erasing flash&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [100%] Done.&lt;/P&gt;&lt;P&gt;Programming flash [100%] Done.&lt;/P&gt;&lt;P&gt;Verifying flash&amp;nbsp;&amp;nbsp; [100%] Done.&lt;/P&gt;&lt;P&gt;J-Link: Flash download: Flash programming performed for 1 range (81920 bytes)&lt;/P&gt;&lt;P&gt;J-Link: Flash download: Total time needed: 2.523s (Prepare: 0.423s, Compare: 0.023s, Erase: 0.052s, Program: 1.993s, Verify: 0.006s, Restore: 0.024s)&lt;/P&gt;&lt;P&gt;O.K.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;r&lt;/P&gt;&lt;P&gt;Reset delay: 0 ms&lt;/P&gt;&lt;P&gt;Reset type NORMAL: Resets core &amp;amp; peripherals via SYSRESETREQ &amp;amp; VECTRESET bit.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;g&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;loadfile /opt/springdale/achc-56.bin&lt;/P&gt;&lt;P&gt;Downloading file [/opt/springdale/achc-56.bin]...&lt;/P&gt;&lt;P&gt;Comparing flash&amp;nbsp;&amp;nbsp; [100%] Done.&lt;/P&gt;&lt;P&gt;Erasing flash&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [100%] Done.&lt;/P&gt;&lt;P&gt;Verifying flash&amp;nbsp;&amp;nbsp; [100%] Done.&lt;/P&gt;&lt;P&gt;J-Link: Flash download: Restarting flash programming due to program error (possibly skipped erasure of half-way erased sector).&lt;/P&gt;&lt;P&gt;J-Link: Flash download: Skip optimizations disabled for second try.&lt;/P&gt;&lt;P&gt;Error while programming flash: Programming failed.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;exit&lt;/P&gt;&lt;P&gt;/opt/SEGGER/JLink/JLinkExe -device MK20FN1M0xxx12 -if JTAG -speed 4000 -JTAGConf -1,-1&lt;/P&gt;&lt;P&gt;SEGGER J-Link Commander V5.10g (Compiled Jan&amp;nbsp; 6 2016 13:54:12)&lt;/P&gt;&lt;P&gt;DLL version V5.10g, compiled Jan&amp;nbsp; 6 2016 13:54:07&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connecting to J-Link via USB...O.K.&lt;/P&gt;&lt;P&gt;Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04&lt;/P&gt;&lt;P&gt;Hardware version: V7.00&lt;/P&gt;&lt;P&gt;S/N: 20090928&lt;/P&gt;&lt;P&gt;License(s): RDI,FlashDL,FlashBP,JFlash,GDBFull&lt;/P&gt;&lt;P&gt;Emulator has Trace capability&lt;/P&gt;&lt;P&gt;VTref = 3.300V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type "connect" to establish a target connection, '?' for help&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;erase&lt;/P&gt;&lt;P&gt;Target connection not established yet but required for command.&lt;/P&gt;&lt;P&gt;Device "MK20FN1M0XXX12" selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TotalIRLen = 4, IRPrint = 0x01&lt;/P&gt;&lt;P&gt;Secured Kinetis device detected. For debugger connection the device needs to be unsecured.&lt;/P&gt;&lt;P&gt;Device will be unsecured now.&lt;/P&gt;&lt;P&gt;Note: Unsecuring will trigger a mass erase of the internal flash.&lt;/P&gt;&lt;P&gt;TotalIRLen = 4, IRPrint = 0x01&lt;/P&gt;&lt;P&gt;Found Cortex-M4 r0p1, Little endian.&lt;/P&gt;&lt;P&gt;FPUnit: 6 code (BP) slots and 2 literal slots&lt;/P&gt;&lt;P&gt;CoreSight components:&lt;/P&gt;&lt;P&gt;ROMTbl 0 @ E00FF000&lt;/P&gt;&lt;P&gt;ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS&lt;/P&gt;&lt;P&gt;ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT&lt;/P&gt;&lt;P&gt;ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB&lt;/P&gt;&lt;P&gt;ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM&lt;/P&gt;&lt;P&gt;ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU&lt;/P&gt;&lt;P&gt;ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM&lt;/P&gt;&lt;P&gt;ROMTbl 0 [6]: FFF43000, CID: B105900D, PID: 003BB907 ETB&lt;/P&gt;&lt;P&gt;ROMTbl 0 [7]: FFF44000, CID: B105900D, PID: 001BB908 CSTF&lt;/P&gt;&lt;P&gt;Found 1 JTAG device, Total IRLen = 4:&lt;/P&gt;&lt;P&gt; #0 Id: 0x4BA00477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)&lt;/P&gt;&lt;P&gt;Cortex-M4 identified.&lt;/P&gt;&lt;P&gt;Erasing device (MK20FN1M0xxx12)...&lt;/P&gt;&lt;P&gt;Comparing flash&amp;nbsp;&amp;nbsp; [100%] Done.&lt;/P&gt;&lt;P&gt;Erasing flash&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [100%] Done.&lt;/P&gt;&lt;P&gt;Verifying flash&amp;nbsp;&amp;nbsp; [100%] Done.&lt;/P&gt;&lt;P&gt;J-Link: Flash download: Total time needed: 1.973s (Prepare: 0.402s, Compare: 0.000s, Erase: 1.547s, Program: 0.000s, Verify: 0.000s, Restore: 0.023s)&lt;/P&gt;&lt;P&gt;Erasing done.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt; mem 0x400 10&lt;/P&gt;&lt;P&gt;00000400 = FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;/P&gt;&lt;P&gt;J-Link&amp;gt;unlock kinetis&lt;/P&gt;&lt;P&gt;Found SWD-DP with ID 0x2BA01477&lt;/P&gt;&lt;P&gt;Unlocking device...O.K.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt;connect&lt;/P&gt;&lt;P&gt;Device "MK20FN1M0XXX12" selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TotalIRLen = 4, IRPrint = 0x01&lt;/P&gt;&lt;P&gt;TotalIRLen = 4, IRPrint = 0x01&lt;/P&gt;&lt;P&gt;Found Cortex-M4 r0p1, Little endian.&lt;/P&gt;&lt;P&gt;FPUnit: 6 code (BP) slots and 2 literal slots&lt;/P&gt;&lt;P&gt;CoreSight components:&lt;/P&gt;&lt;P&gt;ROMTbl 0 @ E00FF000&lt;/P&gt;&lt;P&gt;ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS&lt;/P&gt;&lt;P&gt;ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT&lt;/P&gt;&lt;P&gt;ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB&lt;/P&gt;&lt;P&gt;ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM&lt;/P&gt;&lt;P&gt;ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU&lt;/P&gt;&lt;P&gt;ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM&lt;/P&gt;&lt;P&gt;ROMTbl 0 [6]: FFF43000, CID: B105900D, PID: 003BB907 ETB&lt;/P&gt;&lt;P&gt;ROMTbl 0 [7]: FFF44000, CID: B105900D, PID: 001BB908 CSTF&lt;/P&gt;&lt;P&gt;Found 1 JTAG device, Total IRLen = 4:&lt;/P&gt;&lt;P&gt; #0 Id: 0x4BA00477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)&lt;/P&gt;&lt;P&gt;Cortex-M4 identified.&lt;/P&gt;&lt;P&gt;J-Link&amp;gt; mem 0x400 10&lt;/P&gt;&lt;P&gt;00000400 = FF FF FF FF FF FF FF FF FF FF FF FF FE FF FF FF &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 13:32:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583980#M34502</guid>
      <dc:creator>rickbronson</dc:creator>
      <dc:date>2016-07-21T13:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ezport broken when MCU security status is secure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583981#M34503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick Bronson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for late reply. I've bee looking and consulting this issue. How is the status for this? we have some questions that we like to ask to continue working in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Did you find what exactly cause your device to get secured? you mentioned that you were working on it. Can I assume that your application doesn't change Flash Configuration fields?&lt;/P&gt;&lt;P&gt;2. You mentioned that you are no able to use the EZPORT_RDSR command, but can you try other commands that should work when device is secured? for example, can you try issuing the BE (Flash Bulk Erase) Command without reading the Status Register?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 19:21:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583981#M34503</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2016-08-03T19:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ezport broken when MCU security status is secure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583982#M34504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jorge,&lt;/P&gt;&lt;P&gt;&amp;nbsp; We still have not been able to reproduce the original problem.&amp;nbsp; So I've just been assuming that the original problem is the same problem that I can make happen with the Jlink.&amp;nbsp; The good news is that doing the BE command, then programming as usual seems to bring the part out of security mode.&amp;nbsp; So I'd like to mark this discussion as resolved until we can reproduce the original problem and hopefully see if the changes I've made to our Ezport programming code fixes it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for all the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Rick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 15:35:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Ezport-broken-when-MCU-security-status-is-secure/m-p/583982#M34504</guid>
      <dc:creator>rickbronson</dc:creator>
      <dc:date>2016-08-09T15:35:54Z</dc:date>
    </item>
  </channel>
</rss>

