<?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>MCUXpresso Generalのトピックdebug problem on KL03Z8</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949741#M2441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm experiencing strange behavior while I debug a custom KL03Z8 board and MCUxpresso v11.0.0. I'm able to program/flash the device, enter to the main() and stop waiting for the resume (F8). I can also do step over actions (F6) but if I restart the execution it stops the debugger unexpectedly and I have no debug information available anymore. Here's the current perspective in this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot from 2019-08-05 10-16-41-gas.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86447i833C85F6CD4A6CD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2019-08-05 10-16-41-gas.png" alt="Screenshot from 2019-08-05 10-16-41-gas.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More hints:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm using PE Multilink Universal FX debug prove&lt;/LI&gt;&lt;LI&gt;I've created the KL03Z8 project using MCUxpresso wizard, SDK v2.3.1 and ConfigTools for the Pins/Clocks initialization&lt;/LI&gt;&lt;LI&gt;Debug works fine and I have no issues with a KL03Z32 custom board (project created in the same way than previous KL03Z8 device)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Aug 2019 08:42:40 GMT</pubDate>
    <dc:creator>gschelotto</dc:creator>
    <dc:date>2019-08-05T08:42:40Z</dc:date>
    <item>
      <title>debug problem on KL03Z8</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949741#M2441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm experiencing strange behavior while I debug a custom KL03Z8 board and MCUxpresso v11.0.0. I'm able to program/flash the device, enter to the main() and stop waiting for the resume (F8). I can also do step over actions (F6) but if I restart the execution it stops the debugger unexpectedly and I have no debug information available anymore. Here's the current perspective in this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot from 2019-08-05 10-16-41-gas.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86447i833C85F6CD4A6CD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2019-08-05 10-16-41-gas.png" alt="Screenshot from 2019-08-05 10-16-41-gas.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More hints:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm using PE Multilink Universal FX debug prove&lt;/LI&gt;&lt;LI&gt;I've created the KL03Z8 project using MCUxpresso wizard, SDK v2.3.1 and ConfigTools for the Pins/Clocks initialization&lt;/LI&gt;&lt;LI&gt;Debug works fine and I have no issues with a KL03Z32 custom board (project created in the same way than previous KL03Z8 device)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 08:42:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949741#M2441</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2019-08-05T08:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: debug problem on KL03Z8</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949742#M2442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be related to the NMI input (pin13 of MKL03Z8VFG4) and a low voltage level on this pin at power up?&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;I am trying to do the same procedure in a similar case for the MKE02Z family&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt; (see next post) with no success.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;A href="https://community.nxp.com/thread/428459"&gt;powering up issue on MKE02Z GPIO&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Digging into the KL03-Sub Reference Manual I've found the FTFA_FOPT register with the NMI_DIS field to disable the interrupt. However this register is located in the Flash memory and it's necessary to program the appropriate bits in the NVM option byte in order to change its value. How can I&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt; do it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;regards,&lt;BR /&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 14:06:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949742#M2442</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2019-08-06T14:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: debug problem on KL03Z8</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949743#M2443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It is in startup_mkl03z.c. Please find&lt;/P&gt;&lt;P&gt;__attribute__ ((used,section(".FlashConfig"))) const struct {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word4;&lt;BR /&gt;} Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFE};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the code is programmed into flash, this config is also write to the place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2019 07:41:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949743#M2443</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-08-07T07:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: debug problem on KL03Z8</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949744#M2444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing,&lt;/P&gt;&lt;P&gt;In my startup_mkl03z4.c I've found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__attribute__ ((used,section(".FlashConfig"))) const struct {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word4;&lt;BR /&gt;//} Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFF3DFE};&lt;BR /&gt;} Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFF39FE};&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// NMI disabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you confirm me this is correct to disable the NMI (bit 2 of FTFA_FOPT)? I'm not able to find more information about the data structure and its relation with the flash registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2019 10:49:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949744#M2444</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2019-08-07T10:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: debug problem on KL03Z8</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949745#M2445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 10:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949745#M2445</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-08-08T10:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: debug problem on KL03Z8</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949746#M2446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jing but the problem persists even with NMI_DIS = 0.&lt;/P&gt;&lt;P&gt;It works fine if PTB5 is disconnected from a GND pull-down resistor and left in High-Z&lt;/P&gt;&lt;P&gt;Any hints?&lt;/P&gt;&lt;P&gt;gaston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 10:29:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949746#M2446</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2019-08-08T10:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: debug problem on KL03Z8</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949747#M2447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please see reference manual Figure 6-1. Now, FOPT[BOOTPIN_OPT]=0 and BOOTCFG0 pin=0. (Please note that BOOTCFG0 pin share with NMI pin). Then system boot from ROM. Figure 11-2 shows that if boot from ROM, it will disable Timeout detection. So, the ROM code will loop forever.&lt;/P&gt;&lt;P&gt;If you want to pull down the NMI/BOOTCFG0 pin, you can set FOPT[BOOTSRC_SEL] to 10/11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 03:23:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949747#M2447</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-08-09T03:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: debug problem on KL03Z8</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949748#M2448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;Now I see it more clear but I have managed to do it in a different way. The key is the BOOTPIN_OPT that It has to be set to 1 in order tho boot from BOOTSRC_SEL configuration. If BOOTSRC_SEL = 00 the device will boot from flash as in most cases.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;In summary, now it works correctly with the following configuration:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt; FOPT[NMI_DIS]=0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt; FOPT[BOOTPIN_OPT]=1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt; FOPT[BOOTSRC_SEL]=00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;__attribute__ ((used,section(".FlashConfig"))) const struct {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned int word4;&lt;BR /&gt;//} Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFF3DFE};&lt;BR /&gt;//} Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFF39FE};&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// NMI disabled&lt;BR /&gt;} Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFF3BFE};&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// NMI disabled &amp;amp; BOOTPIN_OPT = 1 &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;regards,&lt;BR /&gt;gaston&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 06:34:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/debug-problem-on-KL03Z8/m-p/949748#M2448</guid>
      <dc:creator>gschelotto</dc:creator>
      <dc:date>2019-08-09T06:34:43Z</dc:date>
    </item>
  </channel>
</rss>

