<?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>Kinetis MicrocontrollersのトピックRe: Kinetis EA Flashing?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375186#M19652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your KEA SWD interface related circuit for review?&lt;/P&gt;&lt;P&gt;I also would recommend to refer &lt;A href="http://cache.freescale.com/files/soft_dev_tools/hardware_tools/schematics/TRK-KEA64_SCH.pdf"&gt;TRK-KEA64 board schematics&lt;/A&gt; as an reference.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 30 Dec 2014 10:47:11 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2014-12-30T10:47:11Z</dc:date>
    <item>
      <title>Kinetis EA Flashing?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375183#M19649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a very simple Kinetis EA (S9KEAZN64AMLC) design. It's using the internal oscillator. I can build code for it using the Kinetis Design Studio, and my J-Link Lite can see it and talk to it. I can use the tools to read and write to SRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't, however, flash the device.&amp;nbsp; I've tried both within the IDE as well as with the command line J-Link Commander tool. The devices are definitely not locked (fresh stock from DigiKey). &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;OpenOCD doesn't have the correct flash algorithm for this specific series of Kinetis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does one flash these devices? I am sure I'm missing something stupid, and my gut tells me that it's perhaps the fact that I'm using the slow internal oscillator. I've not found anything useful on these forums or on various web searches, and I'm getting pretty frustrated. Can anyone shed some light on this? I'm running on a 3.3V regulated supply, I'm not doing anything goofy with any of the I/O, and the SWD interface is not being shared with anything else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample output from JLinkExe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;$ JLinkExe&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;SEGGER J-Link Commander V4.94c ('?' for help)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Compiled Oct 31 2014 20:08:55&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;DLL version V4.94c, compiled Oct 31 2014 20:08:48&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Firmware: J-Link Lite-Cortex-M V8 compiled Jul 17 2014 11:40:12&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Hardware: V8.00&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;S/N: 518107921&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Feature(s): GDB&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;VTarget = 3.332V&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Info: Could not measure total IR len. TDO is constant high.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;No devices found on JTAG chain. Trying to find device on SWD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Info: Found SWD-DP with ID 0x0BC11477&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Info: Found Cortex-M0 r0p0, Little endian.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Info: FPUnit: 2 code (BP) slots and 0 literal slots&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Cortex-M0 identified.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Target interface speed: 100 kHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;device skeazn64xxx2&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Info: Device "SKEAZN64XXX2" selected (64 KB flash, 4 KB RAM).&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Reconnecting to target...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Info: Found SWD-DP with ID 0x0BC11477&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Info: Found SWD-DP with ID 0x0BC11477&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Info: Found Cortex-M0 r0p0, Little endian.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Info: FPUnit: 2 code (BP) slots and 0 literal slots&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;r&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Reset delay: 0 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Reset type NORMAL: Resets core &amp;amp; peripherals via SYSRESETREQ &amp;amp; VECTRESET bit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;erase&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Erasing device (SKEAZN64xxx2)...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;(...several second pause while it communicates with the MCU...) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;****** Error: PC of target system has unexpected value after erasing sector. (PC = 0xFFFFFFFE)!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;---------------------------------------------------------------------- Registers -------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PC&amp;nbsp;&amp;nbsp; = FFFFFFFE&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Current: R0&amp;nbsp;&amp;nbsp; = 00F3E3BE, R1&amp;nbsp;&amp;nbsp; = 00000001, R2&amp;nbsp;&amp;nbsp; = 4004801C, R3&amp;nbsp;&amp;nbsp; = 00000001&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; R4&amp;nbsp;&amp;nbsp; = 00000000, R5&amp;nbsp;&amp;nbsp; = 00000000, R6&amp;nbsp;&amp;nbsp; = 000000F4, R7&amp;nbsp;&amp;nbsp; = 1FFFFD61&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1" style="font-family: 'andale mono', times;"&gt;Info: J-Link: Flash download: Total time needed: 2.174s (Prepare: 0.894s, Compare: 0.000s, Erase: 0.736s, Program: 0.000s, Verify: 0.000s, Restore: 0.542s)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;ERROR: Erase returned with error code -5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;H6&gt;Dec 29 edit:&lt;/H6&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some more information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read that the NMI# pin is enabled out of reset (and verified this by reading SIM_SOPT) but also that it has an internal pull-up when enabled. On this particular part PTB4 is on pin 10 which is a no-connect in my design. Disabling the NMI pin makes no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at clocking now... Out of reset, ICS is the clock source to the FLL and BDIV in ICS_C2 is set to 001 (the reset default). If I understand correctly, this means that the 32kHz internal oscillator is multiplied by 1024 by the FLL and then divided by 2, making ICSOUTCLK 32kHz * 1024 / 2 or 16.8MHz. I can verify through the J-Link CLI that the FLL is locked by reading ICS_S:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;mem8 40064004 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;40064004 = 50&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(LOCK and IREFST are set, this is correct.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then move on to verify that the SIM has the clock enabled for the flash controller by reading SIM_SCGC. I can also quickly check to make sure that BUSDIV in SIM_BUSDIV is set to zero which means that the BUSCLK is the same frequency as ICSOUTCLK (i.e. it's not being divided down):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;mem32 4004800c 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;4004800C = 00003000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;mem32 40048018 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;40048018 = 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, everything looks fine. BUSCLK is 16.8MHz and the flash controller clock isn't gated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now let's move on to the flash controller. Out of reset FCLKDIV is zero, and we need a 1MHz clock. Table 18-2 in KEA64RM shows that FDIV should be set to 0x10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of reset:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;mem8 40020000 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;40020000 = 00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting up the divider and verifying things are good:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;w1 40020000 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Writing 10 -&amp;gt; 40020000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;mem8 40020000 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;40020000 = 90&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FDIVLD is set and the correct value in FDIV is shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before going too far ahead, let's make sure that the flash isn't protected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;mem8 40020001 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;40020001 = FE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KEYEN = 11 (disabled) and SEC=10 (unsecured). Ok.&amp;nbsp; Let's try to verify the device is blank:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;mem8 40020006 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;40020006 = 80&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;w1 40020002 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Writing 00 -&amp;gt; 40020002&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;w1 4002000a 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Writing 01 -&amp;gt; 4002000A&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;mem8 40020006&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;w1 40020006 80&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Writing 80 -&amp;gt; 40020006&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;mem8 40020006 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;40020006 = 83&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here we see that the MGSTAT bits in FSTAT indicate that blank check has failed and also that non-correctable errors were found. Odd.&amp;nbsp; Let's try erasing it ourselves:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;w1 40020002 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Writing 00 -&amp;gt; 40020002&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;w1 4002000a 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Writing 08 -&amp;gt; 4002000A&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;w1 40020006 80&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Writing 80 -&amp;gt; 40020006&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;mem8 40020006 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;40020006 = 80&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The erase all command succeeded. Now let's try a blank check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;w1 40020002 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Writing 00 -&amp;gt; 40020002&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;w1 4002000a 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Writing 01 -&amp;gt; 4002000A&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;w1 40020006 80&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Writing 80 -&amp;gt; 40020006&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;mem8 40020006 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;40020006 = 80&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the blank check is fine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point I'm about ready to give up, eat the loss on these prototypes and go with a processor from ST where I've never had these kinds of issues before. The Kinetis documentation is thorough enough but it is &lt;STRONG&gt;very&lt;/STRONG&gt; dense and I'm finding it very difficult to get started. I can wiggle I/O through memory reads and access other peripherals but I can't for the life of me figure out what's wrong with the flash controller.&amp;nbsp; I've been working with micros for over 20 years and this kind of difficulty is something I have never encountered before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited to include walkthrough of the device state and flash erase attempt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Added schematic page showing MCU, power supplies and SWD interface&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 01:26:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375183#M19649</guid>
      <dc:creator>akohlsmith</dc:creator>
      <dc:date>2014-12-25T01:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis EA Flashing?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375184#M19650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you run "unlock Kinetis" command normally at J-Link Commander tool?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Fri, 26 Dec 2014 08:55:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375184#M19650</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-12-26T08:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis EA Flashing?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375185#M19651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon, Hui_Ma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can execute the command and it pauses for several seconds (much like "flash erase") but then JLinkExe says that a timeout occurred. I don't get any other information which may help in diagnosing the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Dec 2014 21:12:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375185#M19651</guid>
      <dc:creator>akohlsmith</dc:creator>
      <dc:date>2014-12-28T21:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis EA Flashing?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375186#M19652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your KEA SWD interface related circuit for review?&lt;/P&gt;&lt;P&gt;I also would recommend to refer &lt;A href="http://cache.freescale.com/files/soft_dev_tools/hardware_tools/schematics/TRK-KEA64_SCH.pdf"&gt;TRK-KEA64 board schematics&lt;/A&gt; as an reference.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 30 Dec 2014 10:47:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375186#M19652</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-12-30T10:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis EA Flashing?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375187#M19653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There isn't anything to the SWD interface; SWDCK, SWDIO and RST# go to the J-Link Lite. Neither RST# nor NMI# have pullups, but the documentation states clearly that an internal pullup is present (section 12.2.2 in the RM).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added the relevant page from my schematic. SWDCK, SWDIO and RST connect directly to the SWD connector and nothing else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;edit: 20141230 22:48&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used SIM_SOPT to disable the external reset pin and this allowed the J-Link Commander to "unlock kinetis" correctly. However nothing worked after that because the CPU could not be stopped. (e.g. I could not issue "erase flash" or even halt the CPU):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Info: Found SWD-DP with ID 0x0BC11477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Info: Found SWD-DP with ID 0x0BC11477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Info: Found Cortex-M0 r0p0, Little endian.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Info: FPUnit: 2 code (BP) slots and 0 literal slots&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Reset type NORMAL: Resets core &amp;amp; peripherals via SYSRESETREQ &amp;amp; VECTRESET bit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;r&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Reset delay: 0 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Reset type NORMAL: Resets core &amp;amp; peripherals via SYSRESETREQ &amp;amp; VECTRESET bit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;h&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;PC = FFFFFFFE, CycleCnt = 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;R0 = 08614405, R1 = 80A08004, R2 = 010540A0, R3 = 04000400&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;R4 = 00400920, R5 = 8C018008, R6 = 00080042, R7 = 01004060&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;R8 = 02000888, R9 = 00212402, R10= 04000011, R11= 90040044&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;R12= 04989040&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;SP(R13)= FFFFFFFC, MSP= FFFFFFFC, PSP= 000C8200, R14(LR) = FFFFFFF9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;XPSR = 41000000: APSR = nZcvq, EPSR = 01000000, IPSR = 000 (NoException)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'andale mono', times;"&gt;J-Link&amp;gt;unlock kinetis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Unlocking device...Timeout while unlocking device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I disable the reset pin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt; font-family: 'andale mono', times;"&gt;J-Link&amp;gt;w4 40048004 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Writing 00000008 -&amp;gt; 40048004&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;unlock kinetis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Unlocking device...O.K.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now the CPU cannot be halted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;h&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU could not be halted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;h&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU could not be halted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;erase&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Erasing device (SKEAZN64xxx2)...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 16 (XPSR) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 20 (CFBP) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 0 (R0) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 1 (R1) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 2 (R2) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 3 (R3) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 4 (R4) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 5 (R5) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 6 (R6) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 7 (R7) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 8 (R8) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 9 (R9) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 10 (R10) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 11 (R11) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 12 (R12) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 14 (R14) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 15 (R15) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 17 (MSP) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Can not read register 18 (PSP) while CPU is running&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Failed to prepare for programming.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Could not read target memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Please check your flash settings!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;ERROR: Erase returned with error code -1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU could not be halted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;moe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;CPU is not halted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;r&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Reset delay: 0 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Reset type NORMAL: Resets core &amp;amp; peripherals via SYSRESETREQ &amp;amp; VECTRESET bit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Info: SYSRESETREQ has confused core. Trying to reconnect and use VECTRESET.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Info: Found SWD-DP with ID 0x0BC11477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: Failed to reset CPU. VECTRESET has confused core.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU did not halt after reset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU could not be halted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Info: Core did not halt after reset, trying to disable WDT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU did not halt after reset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU could not be halted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: Could not set S_RESET_ST&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Info: Found SWD-DP with ID 0x0BC11477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: Could not set S_RESET_ST&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU did not halt after reset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU could not be halted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Info: Core did not halt after reset, trying to disable WDT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU did not halt after reset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU could not be halted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: Could not set S_RESET_ST&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU could not be halted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;****** Error: Could not power up debug port: Control/Status register reads 0BC11477&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;J-Link&amp;gt;h&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;WARNING: CPU could not be halted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an example project for KDS which already has the correct configuration for J-Link and the SKEAZN64? I simply cannot believe that this is this difficult. I'm working off of 3.3V; is this an issue? The datasheet says that the part and all its peripherals should work in their full capacity down to 2.7V.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The schematic for the TRK-KEA64 really shows nothing unusual or interesting for the SWD interface (or anything for that matter) -- it's just direct-wired to the debug port. No pullups/downs, no unusual filtering or strapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm stumped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 15:08:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375187#M19653</guid>
      <dc:creator>akohlsmith</dc:creator>
      <dc:date>2014-12-30T15:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis EA Flashing?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375188#M19654</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;Sorry for the later reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use KDS software created a project and debug with TRK-KEA64 board without success. There always shows the debugger connection error.&lt;/P&gt;&lt;P&gt;I also tried to use CodeWarrior MCU V10.6 to debug project with TRK-KEA64 board, whatever P&amp;amp;E OPENSDA or Segger J-Link works as expected.&lt;/P&gt;&lt;P&gt;So, I think there exists problem with KDS software with KEA chip. I will forward related info to KDS software team.&lt;/P&gt;&lt;P&gt;The KEA product should work with 3.3V VDD powered.&lt;/P&gt;&lt;P&gt;I would prefer customer could try with CodeWarrior MCU V10.6 software, which could support up to 64KB free code size.&lt;/P&gt;&lt;P&gt;The TRK-KEA64 example code for CW could be downloaded from &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TRK-KEA64&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;here&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 05 Jan 2015 03:04:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375188#M19654</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2015-01-05T03:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Kinetis EA Flashing?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375189#M19655</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;&lt;SPAN style="color: #000000;"&gt;I got the info from Segger, and they indeed identified the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;They plan to release a new Segger firmware either this or next week.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thank you for the attention.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 06 Jan 2015 03:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375189#M19655</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2015-01-06T03:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis EA Flashing?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375190#M19656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've confirmed that as of JLink v4.96a (the 'a' is important, v4.96 did not work) I am able to both program and debug my KEA64 design in KDS using the J-Link Lite Cortex-M adapter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2015 21:45:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-EA-Flashing/m-p/375190#M19656</guid>
      <dc:creator>akohlsmith</dc:creator>
      <dc:date>2015-01-17T21:45:27Z</dc:date>
    </item>
  </channel>
</rss>

