<?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: My code works only with debugger connected and run but doesn't work if it works freely without debugger MKL34z64 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488782#M30122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kareem,&lt;/P&gt;&lt;P&gt;Have you test the project in &lt;A href="http://cache.nxp.com/files/32bit/software_tools/KINETIS-EXPERT-TOOL.html?fpsp=1&amp;amp;WT_TYPE=Software%20Development%20Kits&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=html&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.html"&gt;SDK_1.3_MKL34Z64xxx4&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SDK_1.3_MKL34Z64xxx4.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56280i00F2E83ABDA90A31/image-size/large?v=v2&amp;amp;px=999" role="button" title="SDK_1.3_MKL34Z64xxx4.jpg" alt="SDK_1.3_MKL34Z64xxx4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also test the Processor Expert project created by &lt;A href="http://www.nxp.com/products/software-and-tools/run-time-software/kinetis-software-and-tools/ides-for-kinetis-mcus/kinetis-design-studio-integrated-development-environment-ide:KDS_IDE"&gt;KDS3.2.0&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="create Processor Expert project.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56303i1694B92A56D3F94F/image-size/large?v=v2&amp;amp;px=999" role="button" title="create Processor Expert project.jpg" alt="create Processor Expert project.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="KL34 Processor Expert.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56353iE49CFF2DC6DBB1E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="KL34 Processor Expert.jpg" alt="KL34 Processor Expert.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the project still have problem on your customer board, please attach the schematic of your board.&lt;/P&gt;&lt;P&gt;What debugger are you using, Segger J-Link or PEmicro or the others?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&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;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Apr 2016 06:49:04 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2016-04-29T06:49:04Z</dc:date>
    <item>
      <title>My code works only with debugger connected and run but doesn't work if it works freely without debugger MKL34z64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488781#M30121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My code works only with debugger connected and run but doesn't work if it works freely without debugger MKL34z64!!&lt;/P&gt;&lt;P&gt;What I have missed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 16:13:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488781#M30121</guid>
      <dc:creator>ahmedwahdan</dc:creator>
      <dc:date>2016-04-28T16:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: My code works only with debugger connected and run but doesn't work if it works freely without debugger MKL34z64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488782#M30122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kareem,&lt;/P&gt;&lt;P&gt;Have you test the project in &lt;A href="http://cache.nxp.com/files/32bit/software_tools/KINETIS-EXPERT-TOOL.html?fpsp=1&amp;amp;WT_TYPE=Software%20Development%20Kits&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=html&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.html"&gt;SDK_1.3_MKL34Z64xxx4&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SDK_1.3_MKL34Z64xxx4.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56280i00F2E83ABDA90A31/image-size/large?v=v2&amp;amp;px=999" role="button" title="SDK_1.3_MKL34Z64xxx4.jpg" alt="SDK_1.3_MKL34Z64xxx4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also test the Processor Expert project created by &lt;A href="http://www.nxp.com/products/software-and-tools/run-time-software/kinetis-software-and-tools/ides-for-kinetis-mcus/kinetis-design-studio-integrated-development-environment-ide:KDS_IDE"&gt;KDS3.2.0&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="create Processor Expert project.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56303i1694B92A56D3F94F/image-size/large?v=v2&amp;amp;px=999" role="button" title="create Processor Expert project.jpg" alt="create Processor Expert project.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="KL34 Processor Expert.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56353iE49CFF2DC6DBB1E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="KL34 Processor Expert.jpg" alt="KL34 Processor Expert.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the project still have problem on your customer board, please attach the schematic of your board.&lt;/P&gt;&lt;P&gt;What debugger are you using, Segger J-Link or PEmicro or the others?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&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;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 06:49:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488782#M30122</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-04-29T06:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: My code works only with debugger connected and run but doesn't work if it works freely without debugger MKL34z64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488783#M30123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey Robin&amp;nbsp; thanks for answering me.&lt;/P&gt;&lt;P&gt;I'm already using the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.nxp.com%2Ffiles%2F32bit%2Fsoftware_tools%2FKINETIS-EXPERT-TOOL.html%3Ffpsp%3D1%26WT_TYPE%3DSoftware%2520Development%2520Kits%26WT_VENDOR%3DFREESCALE%26WT_FILE_FORMAT%3Dhtml%26WT_ASSET%3DDownloads%26fileExt%3D.html" rel="nofollow" style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #017bba; text-decoration: underline;" target="_blank"&gt;SDK_1.3_MKL34Z64xxx4&lt;/A&gt;​ &lt;/P&gt;&lt;P&gt;and i'm also accessing the MCU using my own mapping files. &lt;/P&gt;&lt;P&gt;i got the FRDM-KL46Z which has a processor i believe it got the same architecture of the processor i use "KL34Z", the problem is when running the code on the FRDM board it works fine even after reset. &lt;/P&gt;&lt;P&gt;N.B: the on board debugger is PE-micro type&lt;/P&gt;&lt;P&gt;the problem is when i download this code on my custom board which has KL34Z the works fine only after downloading and while debugging but after reset it seems like it was downloaded on the RAM but it is not. I've read the code from my board after halting and it is the same code nothing missing N.B: i use J-LINK&amp;nbsp; SEGGER as a debugger for my board&lt;/P&gt;&lt;P&gt;i doubted the debugger but when i used it with the FRDM board it worked just fine.&lt;/P&gt;&lt;P&gt;any suggestion??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 May 2016 16:17:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488783#M30123</guid>
      <dc:creator>ahmedwahdan</dc:creator>
      <dc:date>2016-05-01T16:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: My code works only with debugger connected and run but doesn't work if it works freely without debugger MKL34z64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488784#M30124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have a similar problem. After I Download my code and it runs well, when I Reset, everything is gone. &lt;/P&gt;&lt;P&gt;Can Anyone help me fix this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 14:18:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488784#M30124</guid>
      <dc:creator>abosamy</dc:creator>
      <dc:date>2016-05-03T14:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: My code works only with debugger connected and run but doesn't work if it works freely without debugger MKL34z64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488785#M30125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attached a picture of what connected to PTA4 and when switched the connection to another pin&amp;nbsp; it worked fine!!!&lt;BR /&gt;I've notied that PTA by default is a NMI so now i'm working on changing the default values and i'll keep you updated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="schemeit-project.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56502i6383A10C72FB92D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="schemeit-project.png" alt="schemeit-project.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 19:27:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488785#M30125</guid>
      <dc:creator>ahmedwahdan</dc:creator>
      <dc:date>2016-05-03T19:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: My code works only with debugger connected and run but doesn't work if it works freely without debugger MKL34z64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488786#M30126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kareem,&lt;/P&gt;&lt;P&gt;The PTA4 by default is a NMI function. Driving the NMI signal low forces a non-maskable interrupt, if the NMI function is selected on the corresponding pin.&lt;/P&gt;&lt;P&gt;If it is possible, please use another pin instead of using PTA4 as GPIO.&lt;/P&gt;&lt;P&gt;If you want use PTA4 as GPIO function, please refer below:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A _jive_internal="true" href="https://community.nxp.com/thread/308220"&gt;Using the NMI_b pin as GPIO on KL15 device&lt;/A&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A _jive_internal="true" href="https://community.nxp.com/thread/350133"&gt;Disable NMI_b pin/interrupt KL04Z? &lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A _jive_internal="true" href="https://community.nxp.com/thread/310241"&gt;Need to use pin PTA4 but not as NMI_b (KL15) &lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 02:49:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488786#M30126</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-05-04T02:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: My code works only with debugger connected and run but doesn't work if it works freely without debugger MKL34z64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488787#M30127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A _jive_internal="true" data-content-finding="Community" data-userid="213933" data-username="Robin_Shen" href="https://community.nxp.com/people/Robin_Shen" style="font-size: 1.286rem; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #8ca9cd;"&gt;Robin&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I found the problem and found that I can disable the NMI using flash config, I've changed the flash config in the startup code to disable the NMI but nothing changed in the flash.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="confg.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56693iF49277FB0E604AEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="confg.png" alt="confg.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 12:12:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/My-code-works-only-with-debugger-connected-and-run-but-doesn-t/m-p/488787#M30127</guid>
      <dc:creator>ahmedwahdan</dc:creator>
      <dc:date>2016-05-04T12:12:44Z</dc:date>
    </item>
  </channel>
</rss>

