<?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>LPC MicrocontrollersのトピックRe: NMI handler</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/NMI-handler/m-p/855793#M34059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for the reply.&amp;nbsp; There already is a pull-up resistor in the circuit, the input being "triggered" is not a bug.&amp;nbsp; On occasion there is physically something in front of a sensor that I never anticipated being there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; My mistake, you are correct, I overlooked the ISP mode detail on that pin!&amp;nbsp; A lot of bad words are firing off in my head!&amp;nbsp; I don't think there is any way to get out of this scenario.&amp;nbsp; I'll have to make some non programmatic changes to work around this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Mar 2019 12:44:25 GMT</pubDate>
    <dc:creator>andreiszeghy</dc:creator>
    <dc:date>2019-03-15T12:44:25Z</dc:date>
    <item>
      <title>NMI handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NMI-handler/m-p/855791#M34057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm using an LPC1769 MCU and have pin P2[10] configured as an external interrupt.&amp;nbsp; I knew this pin was also the Non-Maskable Interrupt, but at the time I was sure that this pin would never be asserted during reset.&amp;nbsp; Well, of course, come to find out that on rare occasions this pin is triggered, and stays triggered,&amp;nbsp; when the MCU resets. So the code winds up locked in the NMI handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am not using the NIM otherwise and the handler currently looks like this:&lt;/P&gt;&lt;P&gt;void NMI_Handler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(1) {}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is there anything I can do in the handler to manage the occasions when the MCU reset's with the NMI asserted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, any info is greatly appreciated,&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 13:28:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NMI-handler/m-p/855791#M34057</guid>
      <dc:creator>andreiszeghy</dc:creator>
      <dc:date>2019-03-14T13:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: NMI handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NMI-handler/m-p/855792#M34058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="290102" data-username="andreiszeghy" href="https://community.nxp.com/people/andreiszeghy"&gt;Andrei Szeghy&lt;/A&gt;，&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;According to your description, it seems MCU won't boot up successfully on rare occasion because of P2[10] is 'triggered', is it right?&lt;BR /&gt;However, I don't agree with the reason you pointed out, I think the MCU enter into the ISP mode, to validate this assumption, please adding a pull-up resistor (10 KΩ) on the P2[10] pin to terminate this 'issue'。&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75343i193916740D2329E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2019 02:32:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NMI-handler/m-p/855792#M34058</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-15T02:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: NMI handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NMI-handler/m-p/855793#M34059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for the reply.&amp;nbsp; There already is a pull-up resistor in the circuit, the input being "triggered" is not a bug.&amp;nbsp; On occasion there is physically something in front of a sensor that I never anticipated being there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; My mistake, you are correct, I overlooked the ISP mode detail on that pin!&amp;nbsp; A lot of bad words are firing off in my head!&amp;nbsp; I don't think there is any way to get out of this scenario.&amp;nbsp; I'll have to make some non programmatic changes to work around this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2019 12:44:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NMI-handler/m-p/855793#M34059</guid>
      <dc:creator>andreiszeghy</dc:creator>
      <dc:date>2019-03-15T12:44:25Z</dc:date>
    </item>
  </channel>
</rss>

