<?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: Im having issues debugging and measuring the MCU current consumption in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Im-having-issues-debugging-and-measuring-the-MCU-current/m-p/656506#M8616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&lt;SPAN style="font-size: 12.0pt;"&gt;The problem is caused by a 2 hardware breakpoint limitation of some &amp;nbsp;devices and the fact that the temp breakpoints do not get cleared by a CDT layer when the session is restarted/terminated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;We are looking into this report to see if P&amp;amp;E plugin can control removing the breakpoints from the CDT layer or adding support for software breakpoint to resolve a two breakpoint limitation.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;In the meantime, as a workaround there are two things that the user can do:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt; Use terminate button and debug button to end and start a new debug session. In this case the temp breakpoints are not being added to the list.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt; Go to breakpoints tab and disable/erase existing breakpoints before doing a session restart.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;2)&lt;SPAN style="font-size: 11.0pt;"&gt;what we saw is that the MCU is getting voltage from the K20 there is a &lt;A _jive_internal="true" href="https://community.nxp.com/thread/325814"&gt;thread in community&lt;/A&gt; that explains how is this happening and help you to understand what’s going on.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Have a Nice day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Jonathan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2016 22:17:00 GMT</pubDate>
    <dc:creator>Jonathan_Iglesias</dc:creator>
    <dc:date>2016-10-06T22:17:00Z</dc:date>
    <item>
      <title>Im having issues debugging and measuring the MCU current consumption</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Im-having-issues-debugging-and-measuring-the-MCU-current/m-p/656503#M8613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently using the KDS version 3.2.0, and I am having issues when trying to debug my code: sometimes when I run the debug environment it goes straight into running when it should start at a stop to be able to go through every line from the get go if I wish so; the functions "jump into" or "jump over" and overall those tools utilized to go step by step in your code, I can't really use them, when I try them it goes straight into running mode or it just ignores it, its only worked a few times but overall its really inconsistent and can't debug any code.&lt;/P&gt;&lt;P&gt;I am not sure if it has something to do with my environment, I downloaded KDS from the NXP page, installed it, and verified if their were any available updates, and that's it. Is there anything&amp;nbsp;I missed doing to properly install all the environment?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, I am utilizing a FRDM-KL05Z, and I am trying low power modes and I would like to measure its current, taking advantage of J4 and removing&amp;nbsp;R27. Doing this, if there is no header connecting J4 there should be no voltage on P3V3_MCU, but there is, and the MCU gets powered, and I've been looking though the schematic and I can't really find where this power comes from, so I can't really measure the MCU's current, and overall its really disturbing and it should be an error that P3V3_MCU has a voltage even when J4 is nor connected and R27 has been removed, if not, whats the point for this header.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, thank you. Hopefully someone can help me out on either problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 21:00:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Im-having-issues-debugging-and-measuring-the-MCU-current/m-p/656503#M8613</guid>
      <dc:creator>fernandotrujill</dc:creator>
      <dc:date>2016-09-27T21:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Im having issues debugging and measuring the MCU current consumption</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Im-having-issues-debugging-and-measuring-the-MCU-current/m-p/656504#M8614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fernando,&lt;/P&gt;&lt;P&gt;1. About "run into"&amp;nbsp; and&amp;nbsp; "run over" , you said few times it work , other time can't ,&lt;/P&gt;&lt;P&gt;what about your project, i need test on your project .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Yes, when cut the R27 , also not connect J4, the VDD pin of MCU also have voltage ,&lt;/P&gt;&lt;P&gt;it passed from other pins of MCU,&amp;nbsp; for the mcu connected to some other ports .&lt;/P&gt;&lt;P&gt;If we cut all of the pins the mcu connected , it also said do not connect the MCU to&lt;/P&gt;&lt;P&gt;any other power, the VDD will be 0 .&lt;/P&gt;&lt;P&gt;While it doesn't matter , it does not interface you measure the current.&lt;/P&gt;&lt;P&gt;Yes , the method you measure current is right .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&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, 28 Sep 2016 07:37:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Im-having-issues-debugging-and-measuring-the-MCU-current/m-p/656504#M8614</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-09-28T07:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Im having issues debugging and measuring the MCU current consumption</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Im-having-issues-debugging-and-measuring-the-MCU-current/m-p/656505#M8615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice, thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Would you want me to send my code/project to you? I've tried different codes/projects, and my debug experience is awful, sometimes not being able to debug at all, and sometimes being really inconsistent, FE: trying to use "jump into" goes to running mode, or goes somewhere into the code that I can't find, and sometimes it freezes. Using Codewarrior I was always able to debug pretty well, using this functions, being able to test my code line by line and being able to see the registers change accordingly, but this is currently impossible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I have looked into the FRDM-KL05Z schematic and as far as I'm concerned the MCU only draws its power from this J4 or R27 if its connected, so when all of this is disconnected and I can still see a voltage in the VDD pin of the MCU and that its turned ON, makes me think that it is a design&amp;nbsp;problem, and makes me doubt that the current measurement won't be accurate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 16:29:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Im-having-issues-debugging-and-measuring-the-MCU-current/m-p/656505#M8615</guid>
      <dc:creator>fernandotrujill</dc:creator>
      <dc:date>2016-09-28T16:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Im having issues debugging and measuring the MCU current consumption</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Im-having-issues-debugging-and-measuring-the-MCU-current/m-p/656506#M8616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&lt;SPAN style="font-size: 12.0pt;"&gt;The problem is caused by a 2 hardware breakpoint limitation of some &amp;nbsp;devices and the fact that the temp breakpoints do not get cleared by a CDT layer when the session is restarted/terminated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;We are looking into this report to see if P&amp;amp;E plugin can control removing the breakpoints from the CDT layer or adding support for software breakpoint to resolve a two breakpoint limitation.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;In the meantime, as a workaround there are two things that the user can do:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI style="margin: 2.0pt 0in 2.0pt 0in;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt; Use terminate button and debug button to end and start a new debug session. In this case the temp breakpoints are not being added to the list.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt; Go to breakpoints tab and disable/erase existing breakpoints before doing a session restart.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;2)&lt;SPAN style="font-size: 11.0pt;"&gt;what we saw is that the MCU is getting voltage from the K20 there is a &lt;A _jive_internal="true" href="https://community.nxp.com/thread/325814"&gt;thread in community&lt;/A&gt; that explains how is this happening and help you to understand what’s going on.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Have a Nice day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Jonathan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 22:17:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Im-having-issues-debugging-and-measuring-the-MCU-current/m-p/656506#M8616</guid>
      <dc:creator>Jonathan_Iglesias</dc:creator>
      <dc:date>2016-10-06T22:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Im having issues debugging and measuring the MCU current consumption</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Im-having-issues-debugging-and-measuring-the-MCU-current/m-p/656507#M8617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that on the FRDM-KL25 this doesn't happens, and the MCU is fully&lt;/P&gt;&lt;P&gt;powered OFF as it should be expected, so this is probably a design error&lt;/P&gt;&lt;P&gt;for the FRDM-KL05, because whats the point of having its own P3V3_MCU power&lt;/P&gt;&lt;P&gt;net if it can't be controlled or isolated for the rest of the power.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if I work under these conditions the board will probably get damaged,&lt;/P&gt;&lt;P&gt;due to being working under an abnormal behavior, as it happened already&lt;/P&gt;&lt;P&gt;once with a FRDM-KL05 board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either way, I still tried to measure current from J4 and I can't get any&lt;/P&gt;&lt;P&gt;reading. So I guess our better option will be to use the FRDM-KL25 for&lt;/P&gt;&lt;P&gt;testing these low power modes, but it won't be optimal, because our project&lt;/P&gt;&lt;P&gt;is going to utilize a KL05 MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can come up with something else, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando Trujillo&lt;/P&gt;&lt;P&gt;Embedded Systems Design Engineer&lt;/P&gt;&lt;P&gt;@Nacuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Thu, Oct 6, 2016 at 5:17 PM, jonathaniglesias &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 17:25:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Im-having-issues-debugging-and-measuring-the-MCU-current/m-p/656507#M8617</guid>
      <dc:creator>fernandotrujill</dc:creator>
      <dc:date>2016-10-07T17:25:33Z</dc:date>
    </item>
  </channel>
</rss>

