<?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 Why Kinetis K20 does not boot when disconnected from the debug probe? in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-Kinetis-K20-does-not-boot-when-disconnected-from-the-debug/m-p/326704#M1105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am developing an application for the part MK20FX512VLQ12 using CodeWarrior 10.6 for MCU using as debug probes both P&amp;amp;E USB Multilink Universal and SEGGER J-Link. Its a very simple bareboard application (i.e., no RTOS), which uses Processor Expert for all drivers. Its binary takes less than 10 KB compiled with all debugging information on and all optimization off.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can run the application in debug mode without problems. This is without breakpoints (except at the start of "main", which is unavoidable) to help with any timing or interaction issues. When I start a debug session, hit continue at the breaking point at the start of main() and only then disconnect the debug probe, it keeps running normally (as long as NMI is disabled, at least). When I choose Run (CTRL+F11) instead of Debug (F11), however, the application does not boot.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When measuring the RESET_b pin without the debug probe connected, it oscillates like described in &lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-objectid="300626" data-objecttype="1" href="https://community.nxp.com/thread/300626"&gt;PK60F120M Reset pin oscillating&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;. This is after the application has been written to flash, though. I have even verified, when debugging, that memory positions 0x0 and 0x4 are properly set. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am, therefore, out of ideas.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Why the application does not boot when disconnected from the debug probe? &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;How can I make it do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Aug 2014 22:42:44 GMT</pubDate>
    <dc:creator>adrianomitre</dc:creator>
    <dc:date>2014-08-29T22:42:44Z</dc:date>
    <item>
      <title>Why Kinetis K20 does not boot when disconnected from the debug probe?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-Kinetis-K20-does-not-boot-when-disconnected-from-the-debug/m-p/326704#M1105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am developing an application for the part MK20FX512VLQ12 using CodeWarrior 10.6 for MCU using as debug probes both P&amp;amp;E USB Multilink Universal and SEGGER J-Link. Its a very simple bareboard application (i.e., no RTOS), which uses Processor Expert for all drivers. Its binary takes less than 10 KB compiled with all debugging information on and all optimization off.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can run the application in debug mode without problems. This is without breakpoints (except at the start of "main", which is unavoidable) to help with any timing or interaction issues. When I start a debug session, hit continue at the breaking point at the start of main() and only then disconnect the debug probe, it keeps running normally (as long as NMI is disabled, at least). When I choose Run (CTRL+F11) instead of Debug (F11), however, the application does not boot.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When measuring the RESET_b pin without the debug probe connected, it oscillates like described in &lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-objectid="300626" data-objecttype="1" href="https://community.nxp.com/thread/300626"&gt;PK60F120M Reset pin oscillating&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;. This is after the application has been written to flash, though. I have even verified, when debugging, that memory positions 0x0 and 0x4 are properly set. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am, therefore, out of ideas.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Why the application does not boot when disconnected from the debug probe? &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;How can I make it do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 22:42:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-Kinetis-K20-does-not-boot-when-disconnected-from-the-debug/m-p/326704#M1105</guid>
      <dc:creator>adrianomitre</dc:creator>
      <dc:date>2014-08-29T22:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why Kinetis K20 does not boot when disconnected from the debug probe?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-Kinetis-K20-does-not-boot-when-disconnected-from-the-debug/m-p/326705#M1106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adriano:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is most likely to be caused by a hosted library. Check the next thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/391778"&gt;Re: MK10DX256VLK7 doesn't run standalone, just when debugging. Verified it's running from FLASH, not RAM.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. I suggest you to post always to a specialized forum space. Otherwise your threads get lost easily and nobody answers. E.g. this debugger question could fit in either of the next spaces:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/space/2020"&gt;CodeWarrior Development Tools&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/space/2028"&gt;CodeWarrior for MCU&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2014 02:43:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-Kinetis-K20-does-not-boot-when-disconnected-from-the-debug/m-p/326705#M1106</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-08-30T02:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why Kinetis K20 does not boot when disconnected from the debug probe?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-Kinetis-K20-does-not-boot-when-disconnected-from-the-debug/m-p/326706#M1107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jorge,&lt;/P&gt;&lt;P&gt;Thank you for your prompt and correct answer.&lt;/P&gt;&lt;P&gt;I would just like to suggest that more clear warnings be provided alongside de semi-hosting option regarding the fact that "the firmware will not boot when disconnected from the debugger and PC", given that &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;the actual wording seems to be confusing for some developers (at the very least two :smileywink:).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Adriano Mitre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 22:27:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-Kinetis-K20-does-not-boot-when-disconnected-from-the-debug/m-p/326706#M1107</guid>
      <dc:creator>adrianomitre</dc:creator>
      <dc:date>2014-09-05T22:27:57Z</dc:date>
    </item>
  </channel>
</rss>

