<?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 Design StudioのトピックRe: Can't turn off NMI using Processor Expert and KE06</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-turn-off-NMI-using-Processor-Expert-and-KE06/m-p/318734#M298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;can you share your modification in CPU_Init.c?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, it disables the NMI pin in PE_low_level_init() with the CPU_NMI_PIN set to 0x00U in CPU_config.h:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; #if CPU_NMI_PIN&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SOPT0 |= (uint32_t)SIM_SOPT0_NMIE_MASK; /* Enable NMI pin */&lt;/P&gt;&lt;P&gt;&amp;nbsp; #else&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SOPT0 &amp;amp;= (uint32_t)~(uint32_t)SIM_SOPT0_NMIE_MASK; /* Disable NMI pin */&lt;/P&gt;&lt;P&gt;&amp;nbsp; #endif /* CPU_NMI_PIN */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2014 05:44:12 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2014-07-11T05:44:12Z</dc:date>
    <item>
      <title>Can't turn off NMI using Processor Expert and KE06</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-turn-off-NMI-using-Processor-Expert-and-KE06/m-p/318733#M297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having a bit of a problem, for which I've logged a service request.&amp;nbsp; Thought I'd share so if anybody else is trying to use SPI0 module with the default PORTB pins, they'll know whats wrong.&amp;nbsp; Stumbled onto the fact that trying to use the SPI0 module creates a problem if the NMI is still enabled in SIM SOPT0.&amp;nbsp; It defaults to on, and it does not automatically turn off if the SPI module is enabled.&amp;nbsp; NMI shares the PORTB4 pin with SPI0_MISO.&amp;nbsp; Since I'm using MQX, Processor Expert has the NMI enabled by default.&amp;nbsp; Trouble is, it's a write once bit.&amp;nbsp; It turns out if I uncheck the NMI checkbox in the CPU configuration, it is still defined, so I've had to modify cpu_init.c to make sure it disables NMI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 19:24:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-turn-off-NMI-using-Processor-Expert-and-KE06/m-p/318733#M297</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2014-07-10T19:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't turn off NMI using Processor Expert and KE06</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-turn-off-NMI-using-Processor-Expert-and-KE06/m-p/318734#M298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;can you share your modification in CPU_Init.c?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, it disables the NMI pin in PE_low_level_init() with the CPU_NMI_PIN set to 0x00U in CPU_config.h:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; #if CPU_NMI_PIN&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SOPT0 |= (uint32_t)SIM_SOPT0_NMIE_MASK; /* Enable NMI pin */&lt;/P&gt;&lt;P&gt;&amp;nbsp; #else&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SOPT0 &amp;amp;= (uint32_t)~(uint32_t)SIM_SOPT0_NMIE_MASK; /* Disable NMI pin */&lt;/P&gt;&lt;P&gt;&amp;nbsp; #endif /* CPU_NMI_PIN */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 05:44:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-turn-off-NMI-using-Processor-Expert-and-KE06/m-p/318734#M298</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-07-11T05:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can't turn off NMI using Processor Expert and KE06</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-turn-off-NMI-using-Processor-Expert-and-KE06/m-p/318735#M299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich, I was able to fix it. I didn't know there were two different checkboxes for disabling the NMI.&amp;nbsp; One under Common Settings, and one under CPU interrupts/resets.&amp;nbsp; Now it seems to be working without my modification.&amp;nbsp; I had just added #undef CPU_NMI_PIN before the statement that checks for it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 12:36:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Can-t-turn-off-NMI-using-Processor-Expert-and-KE06/m-p/318735#M299</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2014-07-11T12:36:26Z</dc:date>
    </item>
  </channel>
</rss>

