<?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 Unable to debug KE02 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-debug-KE02/m-p/358303#M18042</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;Using a MKE02Z64 on a custom board, I'm having problems to connect it to debug. When monitoring the reset line, I can see the MCU resets itself every 40us. Why? I don't understand this point, and there's no so much information about this problem. But I found this other thread: &lt;A href="https://community.nxp.com/thread/118402"&gt;Kinetis K20 - unable to debug&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread says that I must pull-down the reset line, and a mass erase must be performed. Although I'm able to pull-down the reset line (i.e. using an external pull-down, or by configuring it in Lauterbach), I'm not able to perform the mass erase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As debugger environment, I'm using Lauterbach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do? Any suggestion? Any idea although using a different debug envionment is welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Dec 2014 11:53:37 GMT</pubDate>
    <dc:creator>Ardoster</dc:creator>
    <dc:date>2014-12-17T11:53:37Z</dc:date>
    <item>
      <title>Unable to debug KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-debug-KE02/m-p/358303#M18042</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;Using a MKE02Z64 on a custom board, I'm having problems to connect it to debug. When monitoring the reset line, I can see the MCU resets itself every 40us. Why? I don't understand this point, and there's no so much information about this problem. But I found this other thread: &lt;A href="https://community.nxp.com/thread/118402"&gt;Kinetis K20 - unable to debug&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread says that I must pull-down the reset line, and a mass erase must be performed. Although I'm able to pull-down the reset line (i.e. using an external pull-down, or by configuring it in Lauterbach), I'm not able to perform the mass erase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As debugger environment, I'm using Lauterbach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do? Any suggestion? Any idea although using a different debug envionment is welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 11:53:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-debug-KE02/m-p/358303#M18042</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2014-12-17T11:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to debug KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-debug-KE02/m-p/358304#M18043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eduardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sounds like the watchdog, which is enabled by default, and even the flash is empty. You need to flash an aplication inside, that handles or disables the watchdog. When using the debuggers flash scripts, then they disable the watchdog before flashing. This is done by the block:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DisableWatchdog:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Set VM:0x20000000++0x2F %Long 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Assemble VMT:0x20000000 adr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r0,0x20000014&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Assemble ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r0,{r0-r4}&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Assemble ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; movs&amp;nbsp;&amp;nbsp;&amp;nbsp; r5,0&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Assemble ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strb r5, [r0, #1]&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Assemble ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strh r1, [r0, #2]&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Assemble ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strh r2, [r0, #2]&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Assemble ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strh r3, [r0, #4]&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Assemble ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strh r4, [r0, #0]&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Assemble ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bkpt&amp;nbsp;&amp;nbsp;&amp;nbsp; #0x0&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Set VM:0x20000014 %Long 0x40052000&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Set VM:0x20000018 %Long 0x20c5&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Set VM:0x2000001C %Long 0x28D9&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Set VM:0x20000020 %Long 0xFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.Set VM:0x20000024 %Long 0x20&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.COPY SD:0x20000000++0x2F VM:0x20000030&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.COPY VM:0x20000000++0x2F SD:0x20000000&lt;/P&gt;&lt;P&gt;&amp;nbsp; Register.Set PC 0x20000000&lt;/P&gt;&lt;P&gt;&amp;nbsp; Go.direct&lt;/P&gt;&lt;P&gt;&amp;nbsp; WAIT !RUN()&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data.COPY VM:0x20000030++0x2F SD:0x20000000&lt;/P&gt;&lt;P&gt;&amp;nbsp; RETURN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYStem.Up should work even with the enabled watchdog. If SYStem.Up is not working, then you have a different problem. In that case the error message would be interesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard way to call the flash script is calling it directly after SYStem.Up in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SYStem.Up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DO ~~/demo/arm/flash/mke0.cmm PREPAREONLY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The the WDOG will be disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Steffen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 16:35:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-debug-KE02/m-p/358304#M18043</guid>
      <dc:creator>skrausse</dc:creator>
      <dc:date>2014-12-17T16:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to debug KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-debug-KE02/m-p/358305#M18044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steffen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply. It was very insteresting to understand the problem. Anyway, I have problems when using SYSTEM.Up or SYS.MODE.PREPARE. The returned error message is "Emulation Debug Port Fail", "Both SerialWire init sequences failed: ACK: 0X7". :smileycry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's weird no more people is having problems with Lauterbach and this MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 09:10:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-debug-KE02/m-p/358305#M18044</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2014-12-18T09:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to debug KE02</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-debug-KE02/m-p/358306#M18045</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;The problem (or part of the problem) was due to my JTAG pinout, because the SWD IO line is was in the wrong pin. Anyway, I'm having now other problems, and I'm still unable to debug this time by using PE Micro... But I'll ask for help in another thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot of for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 08:59:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Unable-to-debug-KE02/m-p/358306#M18045</guid>
      <dc:creator>Ardoster</dc:creator>
      <dc:date>2014-12-19T08:59:39Z</dc:date>
    </item>
  </channel>
</rss>

