<?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: FRDM-KE02Z debug peculiarity in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-debug-peculiarity/m-p/361564#M18375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;Actually, I'm just clicking the "Make-Start Debugger" button in the IAR IDE, and once it stabilizes, clicking the "run" button. I have a simple program that captures a rising edge, using FTM2, and toggles PTA0. When the debugger is "misbehaving" I can click the run button, and no output on PTA0. If I click the "halt" button, it will invariably be hung in the isr for the capture interrupt in the "ftm.c" file. If I click the single-step button, it will continue to run (i.e. not single step) and if I click "halt" again, it will stop at the FTM_isr function in ftm.c. I can then exit the debugger, re-make (or redo the make/debug process) and eventually (this last time, it took about 10 tries) it will run normally.&lt;/P&gt;&lt;P&gt;I'm not trying to single-step, just flash and run.&lt;/P&gt;&lt;P&gt;The only thing I notice is that, during the startup of the debugger, there is a warning:&lt;/P&gt;&lt;P&gt;Fri Nov 21, 2014 10:17:47: Skipping flash loading pass because there is no data in the designated range: 0x10000000-0x100000FF.&amp;nbsp; I get this warning every single time.&lt;/P&gt;&lt;P&gt;I don't know if this is an IAR EWB problem or a P&amp;amp;E debugger interface problem, but it is terribly annoying, because I don't know if any problems I have are of my own ineptitude, or a development software/hardware problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 18:22:03 GMT</pubDate>
    <dc:creator>davetelling</dc:creator>
    <dc:date>2014-11-21T18:22:03Z</dc:date>
    <item>
      <title>FRDM-KE02Z debug peculiarity</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-debug-peculiarity/m-p/361562#M18373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has this been happening to anyone else? I have a FRDM-KE02 board which I'm using to learn some ARM core basics, and I have found an odd behavior when debugging, using the P&amp;amp;E Micro USB interface.&lt;/P&gt;&lt;P&gt;I have a short program that sets up a timer and captures rising edge interrupts. I've been having a lot of trouble debugging, because it seems that, despite the fact that as far as I can tell, the program is correct, when I go to debug, the system gets caught in some kind of loop where it constantly hits the interrupt function.&lt;/P&gt;&lt;P&gt;In trying to figure out what is going on, I found that making any change in the program, even adding a comment line, could cause this behavior. I subsequently found that if I went back and forth between the IDE and the debugger, eventually I could start the debugger and it would work properly, WITHOUT ANY PROGRAM CHANGES!&lt;/P&gt;&lt;P&gt;Has this happened to anyone else? Optimizations are set to "none".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 17:21:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-debug-peculiarity/m-p/361562#M18373</guid>
      <dc:creator>davetelling</dc:creator>
      <dc:date>2014-11-21T17:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE02Z debug peculiarity</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-debug-peculiarity/m-p/361563#M18374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't describe exactly how you are running the debugger, but I will just point out that the ARM 'debug' interface access cycles are not 'special reads', which means that any read from the debugger is just like a read by the processor, so ANY read that has a 'side effect', which might include clearing a 'status available' flag, or 'popping' a FIFO, etc., WILL get triggered by such a read if the debugger EVER attempts to read (to display) a set of peripheral registers or the memory-address-area containing them.&amp;nbsp; The bottom line is that you CANNOT, in general, 'step thru' low-level peripheral-access code and 'watch' how it interacts with the peripheral registers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 17:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-debug-peculiarity/m-p/361563#M18374</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2014-11-21T17:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE02Z debug peculiarity</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-debug-peculiarity/m-p/361564#M18375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;Actually, I'm just clicking the "Make-Start Debugger" button in the IAR IDE, and once it stabilizes, clicking the "run" button. I have a simple program that captures a rising edge, using FTM2, and toggles PTA0. When the debugger is "misbehaving" I can click the run button, and no output on PTA0. If I click the "halt" button, it will invariably be hung in the isr for the capture interrupt in the "ftm.c" file. If I click the single-step button, it will continue to run (i.e. not single step) and if I click "halt" again, it will stop at the FTM_isr function in ftm.c. I can then exit the debugger, re-make (or redo the make/debug process) and eventually (this last time, it took about 10 tries) it will run normally.&lt;/P&gt;&lt;P&gt;I'm not trying to single-step, just flash and run.&lt;/P&gt;&lt;P&gt;The only thing I notice is that, during the startup of the debugger, there is a warning:&lt;/P&gt;&lt;P&gt;Fri Nov 21, 2014 10:17:47: Skipping flash loading pass because there is no data in the designated range: 0x10000000-0x100000FF.&amp;nbsp; I get this warning every single time.&lt;/P&gt;&lt;P&gt;I don't know if this is an IAR EWB problem or a P&amp;amp;E debugger interface problem, but it is terribly annoying, because I don't know if any problems I have are of my own ineptitude, or a development software/hardware problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 18:22:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-debug-peculiarity/m-p/361564#M18375</guid>
      <dc:creator>davetelling</dc:creator>
      <dc:date>2014-11-21T18:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE02Z debug peculiarity</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-debug-peculiarity/m-p/361565#M18376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't meet your mentioned issue with FRDM-KE02Z board.&lt;/P&gt;&lt;P&gt;If you set the correct MKE02 device at IAR project options with below picture?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IAR.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47484i59704C136479CD1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="IAR.jpg" alt="IAR.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What is the IAR version you are using?&lt;/P&gt;&lt;P&gt;If it is possible, if you could post your project and I could test on my site?&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, 24 Nov 2014 08:28:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-debug-peculiarity/m-p/361565#M18376</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-11-24T08:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KE02Z debug peculiarity</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-debug-peculiarity/m-p/361566#M18377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hui_Ma,&lt;/P&gt;&lt;P&gt;Yes, I am selecting the correct processor in the project options. I am using the latest EWB version from the IAR website, 7.3. I have another FRDM board that I am going to try today and see if it makes any difference. So far, this only seems to happen with projects that use the timers. I will post my results.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Dave Telling&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 15:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-debug-peculiarity/m-p/361566#M18377</guid>
      <dc:creator>davetelling</dc:creator>
      <dc:date>2014-11-24T15:21:47Z</dc:date>
    </item>
  </channel>
</rss>

