<?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>Kinetis MicrocontrollersのトピックMKL03 will not boot if PTB5 is grounded.</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-will-not-boot-if-PTB5-is-grounded/m-p/1203183#M59161</link>
    <description>&lt;P&gt;I am using an MKL03Z32VFK4 device in which I am using PTB5, pin19 as a general-purpose input.&lt;/P&gt;&lt;P&gt;Whenever I ground this pin the micro will not boot.&amp;nbsp; I am using other port pins in a similar fashion that works just fine.&amp;nbsp; Does anyone have any idea why grounding PTB5 will prevent the micro from booting?&lt;/P&gt;&lt;P&gt;I am not sure what this debugger screen is telling me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FirmEE_0-1608659161384.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133315iE7127909910E1A46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FirmEE_0-1608659161384.png" alt="FirmEE_0-1608659161384.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2020 17:47:55 GMT</pubDate>
    <dc:creator>FirmEE</dc:creator>
    <dc:date>2020-12-22T17:47:55Z</dc:date>
    <item>
      <title>MKL03 will not boot if PTB5 is grounded.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-will-not-boot-if-PTB5-is-grounded/m-p/1203183#M59161</link>
      <description>&lt;P&gt;I am using an MKL03Z32VFK4 device in which I am using PTB5, pin19 as a general-purpose input.&lt;/P&gt;&lt;P&gt;Whenever I ground this pin the micro will not boot.&amp;nbsp; I am using other port pins in a similar fashion that works just fine.&amp;nbsp; Does anyone have any idea why grounding PTB5 will prevent the micro from booting?&lt;/P&gt;&lt;P&gt;I am not sure what this debugger screen is telling me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FirmEE_0-1608659161384.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133315iE7127909910E1A46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FirmEE_0-1608659161384.png" alt="FirmEE_0-1608659161384.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 17:47:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-will-not-boot-if-PTB5-is-grounded/m-p/1203183#M59161</guid>
      <dc:creator>FirmEE</dc:creator>
      <dc:date>2020-12-22T17:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: MKL03 will not boot if PTB5 is grounded.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-will-not-boot-if-PTB5-is-grounded/m-p/1203503#M59172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/318"&gt;@FirmEE&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;PTB5 is the NMI pin:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ErichS_0-1608706426902.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133374i1428023197D20123/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ErichS_0-1608706426902.png" alt="ErichS_0-1608706426902.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to disable that function. Check the RM how to disable it. As an example for what to do, see&amp;nbsp;&lt;A href="https://mcuoneclipse.com/2020/06/09/disabling-nmi-non-maskable-interrupt-pin/" target="_blank"&gt;Disabling NMI (Non Maskable Interrupt) Pin | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 06:54:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-will-not-boot-if-PTB5-is-grounded/m-p/1203503#M59172</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-12-23T06:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: MKL03 will not boot if PTB5 is grounded.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-will-not-boot-if-PTB5-is-grounded/m-p/1203704#M59185</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;PTB5 is also the BOOTCFG input so you will need to&lt;BR /&gt;1. Disable the ROM loader being started based on the BOOTFG state (in the flash configuration)&lt;BR /&gt;2. Disable also the NMI function (in the flash configuration) or add an NMI handler to do it at reset in case you may need it later in the application. Code shown below&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static __interrupt void irq_NMI(void)
{
    // This is executed immediately out of reset if the NMI line is enabled and held low
    // set the NMI line to an input to remove the NMI function and allow the processor to continue
    //
    _CONFIG_PORT_INPUT_FAST_LOW(B, PORTB_BIT5, PORT_PS_UP_ENABLE);
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;To assign an application NMI handler later:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// Allow the user to enter an NMI handler, ensuring that the NMI pin is configured as NMI function
// - note that the NMI may not have been disabled to allow this to work
//
extern void fnEnterNMI(void (*_NMI_handler)(void))
{
    VECTOR_TABLE *ptrVect = (VECTOR_TABLE *)(RAM_START_ADDRESS);
    ptrVect-&amp;gt;ptrNMI = _NMI_handler;                                       // enter interrupt handler                                  
    _CONFIG_PERIPHERAL(B, 5, (PB_5_NMI | PORT_PS_UP_ENABLE));             // set the NMI pin function
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;BR /&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements&lt;BR /&gt;&lt;BR /&gt;For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: &lt;A href="https://www.utasker.com/kinetis/FRDM-KL03Z.html" target="_blank"&gt;https://www.utasker.com/kinetis/FRDM-KL03Z.html&lt;/A&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 14:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-will-not-boot-if-PTB5-is-grounded/m-p/1203704#M59185</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-12-23T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: MKL03 will not boot if PTB5 is grounded.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-will-not-boot-if-PTB5-is-grounded/m-p/1204376#M59194</link>
      <description>&lt;P&gt;Thanks, Erich and Mark.&amp;nbsp; PTB5 (NMI) being low was causing the device to execute the bootloader. Disabling the NMI and BOOT from ROM fixed the issue.&lt;/P&gt;&lt;P&gt;Mike B&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2020 21:58:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKL03-will-not-boot-if-PTB5-is-grounded/m-p/1204376#M59194</guid>
      <dc:creator>FirmEE</dc:creator>
      <dc:date>2020-12-27T21:58:14Z</dc:date>
    </item>
  </channel>
</rss>

