<?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>LPC Microcontrollers中的主题 Re: Debug in _WFI mode?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673766#M26958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the user manual UM10805 Page 80 it is NOT possible to debug the low-power modes. (&lt;A class="link-titled" href="http://www.nxp.com/docs/en/user-guide/UM10850.pdf" title="http://www.nxp.com/docs/en/user-guide/UM10850.pdf"&gt;http://www.nxp.com/docs/en/user-guide/UM10850.pdf&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_12.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27448iE3AB57F82D676D0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the appnote AN11611 is written that the debugger can be reconnected. However, NXP doesn't write in the appnote, how the reconnection could be accomplished.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_13.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27449i70F301EDAC39D954/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_13.png" alt="pastedImage_13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP, can you give use some advice?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also like to know, how I can restart the debugger if I had previous finished the debug session and the code has not changed until now (no recompilation and flashing required).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2017 20:39:52 GMT</pubDate>
    <dc:creator>simonwyss</dc:creator>
    <dc:date>2017-07-25T20:39:52Z</dc:date>
    <item>
      <title>Debug in _WFI mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673763#M26955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;I am trying to see, what's happening to the program inside the _WFI() mode, but when I try to do so in debug mode. It doesn't proceed further and forcefully we need to stop the debug operation. Does any body know how to deal with such a small issue??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Regards,&lt;/P&gt;&lt;P&gt;Himanshu Doshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 06:56:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673763#M26955</guid>
      <dc:creator>himanshudoshi</dc:creator>
      <dc:date>2017-07-19T06:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Debug in _WFI mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673764#M26956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himanshu Doshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The execution of the WFI instruction will cause immediate entry to the sleep or deep sleep power modes, no more code is executed after this instruction. Sleep mode is exited automatically when an interrupt enabled by the NVIC arrives at the processor or a reset occurs. Please see the User Manual for details on which interrupt sources are connected to NVIC.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 18:59:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673764#M26956</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-07-19T18:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Debug in _WFI mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673765#M26957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Mr. Mendoza&lt;/P&gt;&lt;P&gt;Thank you very much for your reply. I am using&amp;nbsp;SysTick_Handler to get the interrupt in WFI (sleep mode). And, there is a piece of code written in the SysTick_Handler. Can you suggest me how should I debug the code inside the SysTick???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The piece of code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SysTick_Handler(void)&lt;BR /&gt;{&lt;BR /&gt;asm(&lt;BR /&gt;"STR.W R3,[R7]\t\n"&lt;BR /&gt; "STR.W R4,[R3]\t\n"&lt;BR /&gt; "STR.W R5,[R4]\t\n"&lt;/P&gt;&lt;P&gt;);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you once again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 15:21:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673765#M26957</guid>
      <dc:creator>himanshudoshi</dc:creator>
      <dc:date>2017-07-21T15:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Debug in _WFI mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673766#M26958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the user manual UM10805 Page 80 it is NOT possible to debug the low-power modes. (&lt;A class="link-titled" href="http://www.nxp.com/docs/en/user-guide/UM10850.pdf" title="http://www.nxp.com/docs/en/user-guide/UM10850.pdf"&gt;http://www.nxp.com/docs/en/user-guide/UM10850.pdf&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_12.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27448iE3AB57F82D676D0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the appnote AN11611 is written that the debugger can be reconnected. However, NXP doesn't write in the appnote, how the reconnection could be accomplished.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_13.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27449i70F301EDAC39D954/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_13.png" alt="pastedImage_13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP, can you give use some advice?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also like to know, how I can restart the debugger if I had previous finished the debug session and the code has not changed until now (no recompilation and flashing required).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 20:39:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673766#M26958</guid>
      <dc:creator>simonwyss</dc:creator>
      <dc:date>2017-07-25T20:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Debug in _WFI mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673767#M26959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use the "Attach Only" option in the debug configurations, this will allow you to debug a running system:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/630604"&gt;https://community.nxp.com/message/630604&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 17:52:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673767#M26959</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-07-26T17:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Debug in _WFI mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673768#M26960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi Himanshu,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;Are you able to set a breakpoint inside the systick handler? If the debug connection gets lost because of the low power mode being used you could try attaching to the system as explained to Simon.&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 17:54:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673768#M26960</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-07-26T17:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Debug in _WFI mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673769#M26961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Carlos Mendoza,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thank you very much for your reply. As suggested by you, I have provided a toggle break point into the _WFI program, but while debugging, an error was flashing at the bottom of IDE: "Stalled on bus operation". I have restarted the IDE and try again but it's the same and also the same thing happened on the debugger configuration to make attach only option true. Can you comment on it??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;How to debug a program in the _WFI mode??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Himanshu&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 14:42:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673769#M26961</guid>
      <dc:creator>himanshudoshi</dc:creator>
      <dc:date>2017-07-28T14:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Debug in _WFI mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673770#M26962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the cpu encounters a WFI instruction, it basically goes into a simple low power mode, and will no longer execute any instructions until an interrupt is triggered, at which point it will wake up again and enter the appropriate interrupt handler.&amp;nbsp;Thus whilst in WFI "mode", waiting for an interrupt to happen, your application has basically stopped executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a debug point of view, depending on your debug tools, it is possible that your debugger might actually time out the debug connection whilst the cpu is in WFI "mode" if an interrupt is not triggered within a certain timeframe. But in most cases, your system will probably have at least one interrupt triggering on a regular enough basis (such as Systick, or another timer), for the WFI to effectively be "invisible" from the debug point of view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jul 2017 10:16:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Debug-in-WFI-mode/m-p/673770#M26962</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2017-07-29T10:16:48Z</dc:date>
    </item>
  </channel>
</rss>

