<?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: Can't flash kw2xd since Low Power Mode enabled in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-flash-kw2xd-since-Low-Power-Mode-enabled/m-p/846749#M50967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Olivier Fauchon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your questions please see my comments below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can you tell me if&amp;nbsp; Low Power Modes can affect JTAG / SWD?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, when you send your MCU to a low power mode and you don't wake it up it will cause problems with the JTGA / SWD interface. &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is my board/MCU bricked?&amp;nbsp; Are there workaround to recover it?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, your board is bricked but you can recover it. What debugger are you using? What IDE are you using? To recover your board first your debugger needs to have some control over the reset line. After, you must configure your IDE to generate a Hardware reset (set to low the reset line) when launching the debug session.&amp;nbsp; &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What are the safeguards to avoid this situation?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The best option is to always have a way to wake up the MCU from the low power modes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2018 22:41:34 GMT</pubDate>
    <dc:creator>victorjimenez</dc:creator>
    <dc:date>2018-11-23T22:41:34Z</dc:date>
    <item>
      <title>Can't flash kw2xd since Low Power Mode enabled</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-flash-kw2xd-since-Low-Power-Mode-enabled/m-p/846748#M50966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on phyWAVE&amp;nbsp; KW2xD ARM Cortex-M4 board (KW22D512VHA5) with RIOT-OS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had no prior problems for flashing, debugging, running my code&amp;nbsp;through OpenOCD / JLink / SWD interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But yesterday, I changed some code to enable Low Power Mode (LLS), and I flashed the new code.&lt;/P&gt;&lt;P&gt;Since this update, I can't connect anymore the board with JLink/SWD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I get when I try to flash :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open On-Chip Debugger 0.10.0&lt;BR /&gt;Licensed under GNU GPL v2&lt;BR /&gt;For bug reports, read&lt;BR /&gt; &lt;A _jive_internal="true" href="https://community.nxp.com/openocd.org/doc/doxygen/bugs.html" target="_blank"&gt;http://openocd.org/doc/doxygen/bugs.html&lt;/A&gt;&lt;BR /&gt;swd&lt;BR /&gt;Info : add flash_bank kinetis kx.flash&lt;BR /&gt;adapter speed: 1000 kHz&lt;BR /&gt;none separate&lt;BR /&gt;cortex_m reset_config sysresetreq&lt;BR /&gt;Info : No device selected, using first device.&lt;BR /&gt;Info : J-Link ARM V8 compiled Nov 28 2014 13:44:46&lt;BR /&gt;Info : Hardware version: 8.00&lt;BR /&gt;Info : VTarget = 2.685 V&lt;BR /&gt;Info : clock speed 1000 kHz&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Error: MDM: failed to read ID register&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;/P&gt;&lt;P&gt;....&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;/P&gt;&lt;P&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Error: Could not initialize the debug port&lt;BR /&gt; TargetName Type Endian TapName State&lt;BR /&gt;-- ------------------ ---------- ------ ------------------ ------------&lt;BR /&gt; 0* kx.cpu cortex_m little kx.cpu unknown&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Error: MDM: failed to read ID register&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;/P&gt;&lt;P&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;.....&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Info : SWD DPIDR 0x2ba01477&lt;BR /&gt;Error: Could not initialize the debug port&lt;BR /&gt;Error: Target not examined, reset NOT asserted!&lt;BR /&gt;in procedure 'reset'&lt;BR /&gt;in procedure 'ocd_bouncer'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me if&amp;nbsp; Low Power Modes can affect JTAG / SWD ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my board/MCU bricked ?&amp;nbsp; Are there workaround to recover it ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the safeguards to avoid this situation ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking about a delay at startup before enabling Low Power Modes, so programmer&amp;nbsp;always have&amp;nbsp;a couple&lt;/P&gt;&lt;P&gt;of seconds to halt processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olivier Fauchon&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2018 08:18:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-flash-kw2xd-since-Low-Power-Mode-enabled/m-p/846748#M50966</guid>
      <dc:creator>olivierfauchon</dc:creator>
      <dc:date>2018-11-18T08:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't flash kw2xd since Low Power Mode enabled</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-flash-kw2xd-since-Low-Power-Mode-enabled/m-p/846749#M50967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Olivier Fauchon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your questions please see my comments below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can you tell me if&amp;nbsp; Low Power Modes can affect JTAG / SWD?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, when you send your MCU to a low power mode and you don't wake it up it will cause problems with the JTGA / SWD interface. &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is my board/MCU bricked?&amp;nbsp; Are there workaround to recover it?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, your board is bricked but you can recover it. What debugger are you using? What IDE are you using? To recover your board first your debugger needs to have some control over the reset line. After, you must configure your IDE to generate a Hardware reset (set to low the reset line) when launching the debug session.&amp;nbsp; &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What are the safeguards to avoid this situation?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The best option is to always have a way to wake up the MCU from the low power modes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2018 22:41:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-flash-kw2xd-since-Low-Power-Mode-enabled/m-p/846749#M50967</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2018-11-23T22:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't flash kw2xd since Low Power Mode enabled</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-flash-kw2xd-since-Low-Power-Mode-enabled/m-p/846750#M50968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use JLink adapter with OpenOCD (configured with SWD transport)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched about Arm Reset, and I found there are two reset (SRST- which correspond pressing Reset buttons of MCU, and another TRST- Test Reset pin which is related to JTAG controller :&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot from 2018-11-24 09-00-04.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77823i7B722367F106D963/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2018-11-24 09-00-04.png" alt="Screenshot from 2018-11-24 09-00-04.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I wire both RESET&amp;nbsp; lines&amp;nbsp;&amp;nbsp;to flash again my device ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems my programmer supports driving these two reset pins (nTRST / RESET)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot from 2018-11-24 09-05-35.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77867i6F43E70D4277585D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2018-11-24 09-05-35.png" alt="Screenshot from 2018-11-24 09-05-35.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;Thanks for you help&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;Olivier&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2018 08:07:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-flash-kw2xd-since-Low-Power-Mode-enabled/m-p/846750#M50968</guid>
      <dc:creator>olivierfauchon</dc:creator>
      <dc:date>2018-11-24T08:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can't flash kw2xd since Low Power Mode enabled</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-flash-kw2xd-since-Low-Power-Mode-enabled/m-p/846751#M50969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Olivier, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to connect the following Reset pin of the debugger to the SRST pin of the MCU.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78234i39AE260A77977DC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 23:57:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Can-t-flash-kw2xd-since-Low-Power-Mode-enabled/m-p/846751#M50969</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2018-11-28T23:57:47Z</dc:date>
    </item>
  </channel>
</rss>

