<?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: How to disable IRQ7? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270923#M8298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oscar,&lt;/P&gt;&lt;P&gt;Out of reset the IRQ7 is the default pin definintion but the EPORT has not been configured to generate an interrupt.&lt;/P&gt;&lt;P&gt;I'm using MQX4.0 and the M52259EVB as a test bed with the MQX4.0\mqx\examples\gpio project.&lt;/P&gt;&lt;P&gt;I'll attach the code but here is a picture of it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ScreenHunter_08 Feb. 25 14.04.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/38819i8FE1268BDFE3523D/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_08 Feb. 25 14.04.gif" alt="ScreenHunter_08 Feb. 25 14.04.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also I had to add a #define in the BSP m52259evb.h header as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; BSP_IRQ7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (GPIO_PORT_NQ | GPIO_PIN7) &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//DES added&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I used oscope on J1 pin 39 (IRQ7) to see pin toggle..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2013 19:59:35 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2013-02-25T19:59:35Z</dc:date>
    <item>
      <title>How to disable IRQ7?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270922#M8297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read that IRQ7 can't be masked in MQX because of priority (level 7). I tried to use this IRQ7 but it didn't work properly.&lt;/P&gt;&lt;P&gt;Now, I want to disable the IRQ7 and use this pin as GPIO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote in bsp_init.c:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mcf5225_init()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;reg_ptr-&amp;gt;GPIO.PNQPAR = 0x1555; //Disable IRQ7&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But nothing was changed. When I change the pin value, the MQX hangs (seems that execute "spurious interrupt")&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 19:30:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270922#M8297</guid>
      <dc:creator>oscar</dc:creator>
      <dc:date>2013-02-24T19:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable IRQ7?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270923#M8298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oscar,&lt;/P&gt;&lt;P&gt;Out of reset the IRQ7 is the default pin definintion but the EPORT has not been configured to generate an interrupt.&lt;/P&gt;&lt;P&gt;I'm using MQX4.0 and the M52259EVB as a test bed with the MQX4.0\mqx\examples\gpio project.&lt;/P&gt;&lt;P&gt;I'll attach the code but here is a picture of it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ScreenHunter_08 Feb. 25 14.04.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/38819i8FE1268BDFE3523D/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_08 Feb. 25 14.04.gif" alt="ScreenHunter_08 Feb. 25 14.04.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also I had to add a #define in the BSP m52259evb.h header as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; BSP_IRQ7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (GPIO_PORT_NQ | GPIO_PIN7) &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//DES added&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I used oscope on J1 pin 39 (IRQ7) to see pin toggle..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 19:59:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270923#M8298</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2013-02-25T19:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable IRQ7?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270924#M8299</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;&lt;/P&gt;&lt;P&gt;Thx for your quick answer. I'm using the MCF52259 with MQX 3.7 version.&lt;/P&gt;&lt;P&gt;My design has the SD_CARD detection wired to the IRQ7 line (as tower design).&lt;/P&gt;&lt;P&gt;Now, the IRQ7 interrupt is disabled and I'm detecting the card by polling.&lt;/P&gt;&lt;P&gt;The design is in production. The first production serie was OK. Now, we have&lt;/P&gt;&lt;P&gt;a issue: In some boards, if we extract and insert the SD card several times, in the&lt;/P&gt;&lt;P&gt;SD card insertion process, the MQX seems to execute "spurious interrupt" process,&lt;/P&gt;&lt;P&gt;but I don't how to catch and debug this problem. Any idea?&lt;/P&gt;&lt;P&gt;At the beginning I thought that the source code was not OK, but the code runs perfect&lt;/P&gt;&lt;P&gt;in the first production boards. I know that seems a hardware problem, but I'm trying to help&lt;/P&gt;&lt;P&gt;our PCB supplier to fix the problem (he made X-ray test and seems that all are OK)....:smileysad: &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 15:30:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270924#M8299</guid>
      <dc:creator>oscar</dc:creator>
      <dc:date>2013-02-26T15:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable IRQ7?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270925#M8300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oscar,&lt;/P&gt;&lt;P&gt;From our MQX release notes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spurious interrupt occurs when interrupt source is being disabled by software while the interrupt flag is being set by hardware. As a consequence, interrupt controller looses the information about what was the source of the interrupt. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ColdFire processor documentation reccomends to temporarily disable all interrupts each time any interrupt source is being masked in interrupt controller or in peripheral module register. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;User application or custom user drivers need to follow this procedure to avoid spurious interrupts to occur. The interrupt-driven I2C I/O driver was updated accordingly in MQX 3.6. &lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 16:01:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270925#M8300</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2013-02-26T16:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable IRQ7?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270926#M8301</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;&lt;/P&gt;&lt;P&gt;I am also facing the exact problem, I am working on a MCF52259 &amp;amp; MQX 3.6&amp;nbsp; based design&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configure the IRQ7 pin in my (func mcf5225_init) as GPIO as&lt;/P&gt;&lt;P&gt;&lt;EM&gt; reg_ptr-&amp;gt;GPIO.PNQPAR &amp;amp;= 0xBFFF;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use following code in my application to initialize this IO pin&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#define IRQ7&amp;nbsp; GPIO_PORT_NQ | GPIO_PIN7;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;GPIO_PIN_STRUCT ss_gpio_rdrIRQ[] = { IRQ7 | GPIO_PIN_STATUS_0,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_LIST_END};&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;rdrIRQio_fh = fopen("gpio:read", (char_ptr) &amp;amp;ss_gpio_rdrIRQ);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ioctl( rdrIRQio_fh, GPIO_IOCTL_READ, (char_ptr) &amp;amp;ss_gpio_rdrIRQ );&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;(I am excluding the checks for simplicity sake)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now whenever I try to read the status of the pin, MQX goes into Dummy fnc, &amp;amp; error report shows that the un handled interrupt in the task.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;tempIRQStatus =&amp;nbsp; ss_gpio_rdrIRQ[0];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I appreciate response on this, thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Pradeep&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 19:08:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270926#M8301</guid>
      <dc:creator>prvermas</dc:creator>
      <dc:date>2014-07-04T19:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable IRQ7?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270927#M8302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same problem of a device connected to IRQ7 and I had to do polling instead on IRQ7 pin configured as GPIO, but I worked for me on MCF52254 (same as MCF52259) with MQX34 and MQX37.&lt;/P&gt;&lt;P&gt;However I didn't use the gpio driver but directly accessed the registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configured the IRQ7 pin as follows :&lt;/P&gt;&lt;P&gt;&amp;nbsp; VMCF5225_GPIO_STRUCT_PTR gpioregs;&lt;/P&gt;&lt;P&gt;&amp;nbsp; VMCF522XX_EPORT_STRUCT_PTR eportregs;&lt;/P&gt;&lt;P&gt;&amp;nbsp; gpioregs = &amp;amp;((VMCF5225_STRUCT_PTR)_PSP_GET_IPSBAR())-&amp;gt;GPIO;&lt;/P&gt;&lt;P&gt;&amp;nbsp; eportregs = &amp;amp;((VMCF5225_STRUCT_PTR)_PSP_GET_IPSBAR())-&amp;gt;EPORT[0];&lt;/P&gt;&lt;P&gt;&amp;nbsp; gpioregs-&amp;gt;DDRNQ &amp;amp;= ~(1 &amp;lt;&amp;lt; 7); /* input */&lt;/P&gt;&lt;P&gt;&amp;nbsp; eportregs-&amp;gt;EPIER &amp;amp;= ~(1 &amp;lt;&amp;lt; 7); /* disable interrupt */&lt;/P&gt;&lt;P&gt;&amp;nbsp; gpioregs-&amp;gt;PNQPAR &amp;amp;= ~(3 &amp;lt;&amp;lt; (7 &amp;lt;&amp;lt; 1)); /* GPIO mode */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to read the level :&lt;/P&gt;&lt;P&gt;&amp;nbsp; level = (gpioregs-&amp;gt;PORTNQP_SETNQ &amp;amp; (1 &amp;lt;&amp;lt; 7)) ? 1 : 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jul 2014 21:38:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-disable-IRQ7/m-p/270927#M8302</guid>
      <dc:creator>trailman</dc:creator>
      <dc:date>2014-07-06T21:38:47Z</dc:date>
    </item>
  </channel>
</rss>

