<?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: MQX_UNHANDLED_INTERRUPT(0x0041) after setting a GPIO pin in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491840#M15985</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;The ports are properly clocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this pin is set, an onboard GSM modem is powered and a 2 amps spike is drawn by the modem.&lt;/P&gt;&lt;P&gt;This power spike might be causing the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do to find out the source of the exception and being able to handle it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2016 11:53:34 GMT</pubDate>
    <dc:creator>jose_asensio</dc:creator>
    <dc:date>2016-04-12T11:53:34Z</dc:date>
    <item>
      <title>MQX_UNHANDLED_INTERRUPT(0x0041) after setting a GPIO pin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491838#M15983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;I am getting this problem when I set an output pin on a K20 using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GPIO_DRV_SetPinOutput()&lt;/STRONG&gt; function.&lt;/P&gt;&lt;P&gt;This pin enables the power for a section on my board, so I checked if voltage dips are happening on the rail powering the K20 when switching. A 2 mV dip is appearing so I think the problem is not because a power fluctuation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using MQX 4.2.&lt;/P&gt;&lt;P&gt;Any way to know what is going on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 10:25:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491838#M15983</guid>
      <dc:creator>jose_asensio</dc:creator>
      <dc:date>2016-04-11T10:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: MQX_UNHANDLED_INTERRUPT(0x0041) after setting a GPIO pin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491839#M15984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;Please check that you have enable the clock to the desired GPIO module in the SIM module SCGC5 register before trying to access any GPIO registers.&amp;nbsp; If clock to module is not enabled, when you access a module register you get exception to occur.&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>Mon, 11 Apr 2016 14:00:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491839#M15984</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-11T14:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: MQX_UNHANDLED_INTERRUPT(0x0041) after setting a GPIO pin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491840#M15985</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;The ports are properly clocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this pin is set, an onboard GSM modem is powered and a 2 amps spike is drawn by the modem.&lt;/P&gt;&lt;P&gt;This power spike might be causing the exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do to find out the source of the exception and being able to handle it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 11:53:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491840#M15985</guid>
      <dc:creator>jose_asensio</dc:creator>
      <dc:date>2016-04-12T11:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: MQX_UNHANDLED_INTERRUPT(0x0041) after setting a GPIO pin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491841#M15986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;Glad GPIO clocks enabled OK.&lt;/P&gt;&lt;P&gt;Yes a large current draw could cause the K20 (which K20 device are you using?) to reset.&lt;/P&gt;&lt;P&gt;The Kinetis devices have a low-voltage detect (LVD) capability.&amp;nbsp; When voltage gets below specific value, the device will reset.&lt;/P&gt;&lt;P&gt;In the reference manual there is a Reset and Boot chapter.&amp;nbsp; It details what registers to look at.&lt;/P&gt;&lt;P&gt;6.2.2.2 Low-voltage detect (LVD)&lt;/P&gt;&lt;P&gt;The chip includes a system for managing low voltage conditions to protect memory&lt;/P&gt;&lt;P&gt;contents and control MCU system states during supply voltage variations. The system&lt;/P&gt;&lt;P&gt;consists of a power-on reset (POR) circuit and an LVD circuit with a user-selectable trip&lt;/P&gt;&lt;P&gt;voltage. The LVD system is always enabled in normal run, wait, or stop mode. The LVD&lt;/P&gt;&lt;P&gt;system is disabled when entering VLPx, LLS, or VLLSx modes.&lt;/P&gt;&lt;P&gt;The LVD can be configured to generate a reset upon detection of a low voltage condition&lt;/P&gt;&lt;P&gt;by setting the PMC's LVDSC1[LVDRE] bit to 1. &lt;STRONG&gt;The low voltage detection threshold is&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;determined by the PMC's LVDSC1[LVDV] field&lt;/STRONG&gt;. After an LVD reset has occurred, the&lt;/P&gt;&lt;P&gt;LVD system holds the MCU in reset until the supply voltage has risen above the low&lt;/P&gt;&lt;P&gt;voltage detection threshold. The RCM's SRS0[LVD] bit is set following either an LVD&lt;/P&gt;&lt;P&gt;reset or POR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also chapter on Power Management Controller:&lt;/P&gt;&lt;P&gt;15.3 Low-voltage detect (LVD) system&lt;/P&gt;&lt;P&gt;This device includes a system to guard against low-voltage conditions. This protects&lt;/P&gt;&lt;P&gt;memory contents and controls MCU system states during supply voltage variations.&lt;/P&gt;&lt;P&gt;....&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>Tue, 12 Apr 2016 14:48:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491841#M15986</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-12T14:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: MQX_UNHANDLED_INTERRUPT(0x0041) after setting a GPIO pin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491842#M15987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Thanks for your time David. I am using K20DN512VLL10.&lt;/P&gt;&lt;P&gt;The problem was NMI input. It was being set by the modem and NMI interrupt was happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I disabled NMI interrupt modifying flash configuration word in &lt;STRONG&gt;startup_MK20D10.s&lt;/STRONG&gt; and now everything is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32117i419AF917B18E3C9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="untitled.png" alt="untitled.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:14:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491842#M15987</guid>
      <dc:creator>jose_asensio</dc:creator>
      <dc:date>2016-04-14T13:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: MQX_UNHANDLED_INTERRUPT(0x0041) after setting a GPIO pin</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491843#M15988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad you found the issue and shared it with us.&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>Thu, 14 Apr 2016 13:51:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-UNHANDLED-INTERRUPT-0x0041-after-setting-a-GPIO-pin/m-p/491843#M15988</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-14T13:51:42Z</dc:date>
    </item>
  </channel>
</rss>

