<?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 How do I resolve 'Can not enter background mode'? in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-do-I-resolve-Can-not-enter-background-mode/m-p/337792#M820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a K20DN512VLQ10 on a custom board and I'm attempting to debug the default Kinetis Design Studio project via a P&amp;amp;E Multilink Universal on Windows 8.1.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I create a default project for the chip and immediately debug it, the target resets, and this is the output I get in the console:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P&amp;amp;E GDB Server, Version 5.13.02.00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Copyright 2014, P&amp;amp;E Microcomputer Systems Inc, All rights reserved&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Loading library C:\Freescale\KDS_2.0.0\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_1.1.7.201410171532\win32\gdi\unit_ngs_arm_internal.dll ... Done.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Command line arguments: -device=K20DN512 -startserver -singlesession -serverport=7224 -interface=USBMULTILINK -speed=5000 -usejtag -port=USB1 -USE_CYCLONEPRO_RELAYS=0 -FORCE_MASS_ERASE=0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Device selected is k20dn512&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;User Specified Hardware Selection : Interface=USBMULTILINK and Port=USB1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Connecting to target.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P&amp;amp;E Interface detected - Flash Version 6.10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Can not enter background mode&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Unable to initialize PEDebug.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PE-ERROR: Failed to Initialize Target&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Server running on 127.0.0.1:7224&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Connection from "127.0.0.1" via 127.0.0.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PE-ERROR: Target is not connected&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Disconnected from "127.0.0.1" via 127.0.0.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Target Disconnected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made two changes to the debug configuration:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Unchecked 'Use SWD reduced pin protocol for communications' as the board has a 20-pin JTAG port.&lt;/LI&gt;&lt;LI&gt;Changed device name from 'K20DN512M10' to 'K20DN512' as the package identifier for the chip is 'LQ', not 'Mx'.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying different combinations of these settings (using SWD, not using SWD, using different K20 device names) has had no effect. Interestingly, after the 'Can not enter background mode' message, two unprintable characters are echoed to the console (both 0x07).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've searched this forum for solutions without success. Attached is an image of my debug configuration. Is there a specific configuration setting I'm missing?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19315_19315.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120162i2A03223880649BE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="19315_19315.png" alt="19315_19315.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="kds config.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/50124iD14754C2C7043B0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="kds config.png" alt="kds config.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Feb 2015 04:16:42 GMT</pubDate>
    <dc:creator>SAS_Andrew</dc:creator>
    <dc:date>2015-02-01T04:16:42Z</dc:date>
    <item>
      <title>How do I resolve 'Can not enter background mode'?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-do-I-resolve-Can-not-enter-background-mode/m-p/337792#M820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a K20DN512VLQ10 on a custom board and I'm attempting to debug the default Kinetis Design Studio project via a P&amp;amp;E Multilink Universal on Windows 8.1.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I create a default project for the chip and immediately debug it, the target resets, and this is the output I get in the console:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P&amp;amp;E GDB Server, Version 5.13.02.00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Copyright 2014, P&amp;amp;E Microcomputer Systems Inc, All rights reserved&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Loading library C:\Freescale\KDS_2.0.0\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_1.1.7.201410171532\win32\gdi\unit_ngs_arm_internal.dll ... Done.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Command line arguments: -device=K20DN512 -startserver -singlesession -serverport=7224 -interface=USBMULTILINK -speed=5000 -usejtag -port=USB1 -USE_CYCLONEPRO_RELAYS=0 -FORCE_MASS_ERASE=0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Device selected is k20dn512&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;User Specified Hardware Selection : Interface=USBMULTILINK and Port=USB1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Connecting to target.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P&amp;amp;E Interface detected - Flash Version 6.10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Can not enter background mode&amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Unable to initialize PEDebug.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PE-ERROR: Failed to Initialize Target&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Server running on 127.0.0.1:7224&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Connection from "127.0.0.1" via 127.0.0.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PE-ERROR: Target is not connected&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Disconnected from "127.0.0.1" via 127.0.0.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Target Disconnected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made two changes to the debug configuration:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Unchecked 'Use SWD reduced pin protocol for communications' as the board has a 20-pin JTAG port.&lt;/LI&gt;&lt;LI&gt;Changed device name from 'K20DN512M10' to 'K20DN512' as the package identifier for the chip is 'LQ', not 'Mx'.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying different combinations of these settings (using SWD, not using SWD, using different K20 device names) has had no effect. Interestingly, after the 'Can not enter background mode' message, two unprintable characters are echoed to the console (both 0x07).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've searched this forum for solutions without success. Attached is an image of my debug configuration. Is there a specific configuration setting I'm missing?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19315_19315.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120162i2A03223880649BE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="19315_19315.png" alt="19315_19315.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="kds config.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/50124iD14754C2C7043B0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="kds config.png" alt="kds config.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 04:16:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-do-I-resolve-Can-not-enter-background-mode/m-p/337792#M820</guid>
      <dc:creator>SAS_Andrew</dc:creator>
      <dc:date>2015-02-01T04:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resolve 'Can not enter background mode'?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-do-I-resolve-Can-not-enter-background-mode/m-p/337793#M821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew Perkins,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look to the following post created by our colleague Erich Styger, it mentions a check list and provides some hints that might help you resolve the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/11/03/debugging-failure-check-list-and-hints/" title="http://mcuoneclipse.com/2014/11/03/debugging-failure-check-list-and-hints/"&gt;Debugging Failure: Check List and Hints | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please also review the below document where you can find information about the 20-pin header debug interface Implementation (section 2.1.5.3 Debug interface) and make sure your connections are correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf" title="http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf"&gt;http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf&lt;/A&gt;&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;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&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>Wed, 04 Feb 2015 02:49:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-do-I-resolve-Can-not-enter-background-mode/m-p/337793#M821</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2015-02-04T02:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resolve 'Can not enter background mode'?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-do-I-resolve-Can-not-enter-background-mode/m-p/337794#M822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich just plain rocks. I have shared the link to his debugging page to LinkedIn, including several groups. It's as good a "how to get debugging working" list as I have ever seen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 14:57:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-do-I-resolve-Can-not-enter-background-mode/m-p/337794#M822</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-02-05T14:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I resolve 'Can not enter background mode'?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-do-I-resolve-Can-not-enter-background-mode/m-p/337795#M823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hate to ask this, but it is good to check assumptions. Since it is your own target board (correct?), are you confidence your hardware is good?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We recently brought up our own K22F board. I could program the code and start execution, but when we tried to setup the watchdog the system reset. It turned out that while we didn't need Vbat for the RTC just yet, we hadn't installed the Schottky diode array that switched the chips Vbat between the battery and Vcc. When we did, everything worked fine. I could understand accessing the RTC causing a problem, but not so much the Watchdog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just goes to show that one of the challenges of embedded is there are lots and lots and lots of things that have to be "just right" or "she no worky".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck regardless. Getting a new target board up is always a challenge. I am a huge fan of bringing a new system up in stages, but sooner or later you have to cross your fingers, flip the switch, and hope the micro feels like talking to you. :smileywink:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 15:03:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-do-I-resolve-Can-not-enter-background-mode/m-p/337795#M823</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-02-05T15:03:29Z</dc:date>
    </item>
  </channel>
</rss>

