<?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: NMI_DIS bit in KSDK 2.0 in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/NMI-DIS-bit-in-KSDK-2-0/m-p/484523#M4232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matias,&lt;/P&gt;&lt;P&gt;In KSDK_v2 for the MKL43Z you can make the following change to the default FOPT[NMI] bit setting to disable NMI operation in file startup_MKL43Z4.S:&lt;/P&gt;&lt;P&gt;/* Flash Configuration */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .section .FlashConfig, "a"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFF3bFE /* //DES disable NMI */&lt;/P&gt;&lt;P&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFF3FFE */ //DES default&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested this using the gpio_input_interrrupt_frdmkl43z example.&lt;/P&gt;&lt;P&gt;When running it without modification, set a breakpoint in the NMI_Handler in the same assembly file as mentioned above.&lt;/P&gt;&lt;P&gt;Then without running the code yet, press the SW1 which is the NMI pin.&amp;nbsp; Once pressed, run the code and it should hit the breakpoint in the NMI_Handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now make modification to code.&amp;nbsp; Re-compile, re-test and the NMI breakpoint will not occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2016 13:36:11 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2016-04-06T13:36:11Z</dc:date>
    <item>
      <title>NMI_DIS bit in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/NMI-DIS-bit-in-KSDK-2-0/m-p/484522#M4231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi, I would like to know how can I disable the NMI_DIS bit on FTFA_FOPT using KDSK 2.0 new API?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that I have a custom board (MKL43Z MCU) and I'm using PTA4 as input, so the NMI Interrupt occurs when it is in low state... Fortunately in this pin I have a dip switch pulled up to manage this problem while I develop my application, but it will be very useful to know how I can solve the NMI interrupt as well.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Matías&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 11:28:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/NMI-DIS-bit-in-KSDK-2-0/m-p/484522#M4231</guid>
      <dc:creator>matute</dc:creator>
      <dc:date>2016-04-06T11:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: NMI_DIS bit in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/NMI-DIS-bit-in-KSDK-2-0/m-p/484523#M4232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matias,&lt;/P&gt;&lt;P&gt;In KSDK_v2 for the MKL43Z you can make the following change to the default FOPT[NMI] bit setting to disable NMI operation in file startup_MKL43Z4.S:&lt;/P&gt;&lt;P&gt;/* Flash Configuration */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .section .FlashConfig, "a"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFF3bFE /* //DES disable NMI */&lt;/P&gt;&lt;P&gt;/*&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFF3FFE */ //DES default&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested this using the gpio_input_interrrupt_frdmkl43z example.&lt;/P&gt;&lt;P&gt;When running it without modification, set a breakpoint in the NMI_Handler in the same assembly file as mentioned above.&lt;/P&gt;&lt;P&gt;Then without running the code yet, press the SW1 which is the NMI pin.&amp;nbsp; Once pressed, run the code and it should hit the breakpoint in the NMI_Handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now make modification to code.&amp;nbsp; Re-compile, re-test and the NMI breakpoint will not occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 13:36:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/NMI-DIS-bit-in-KSDK-2-0/m-p/484523#M4232</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-06T13:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: NMI_DIS bit in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/NMI-DIS-bit-in-KSDK-2-0/m-p/484524#M4233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, Thank you David! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine now, I saw some FTFA_FOPT defines in MKL43Z4.h but I didn't find the way to apply them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Matias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 16:27:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/NMI-DIS-bit-in-KSDK-2-0/m-p/484524#M4233</guid>
      <dc:creator>matute</dc:creator>
      <dc:date>2016-04-06T16:27:43Z</dc:date>
    </item>
  </channel>
</rss>

