<?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>LPCXpresso IDEのトピックInterrupt not serviced</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-not-serviced/m-p/534231#M3985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mspahr on Thu Sep 05 10:41:48 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPCXpresso V5.2.6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC11U37&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The project is from LPWare/LPC11xx/Downloads/Software/Sample code bundle for LPC1xx peripherals using NXP LPCXpresso.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have based my project on the example USB ROM MSC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added I2C functionality (using I2C.c from the examples) to talk to an EEPROM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can read and write the EEPROM outside the USB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However the USB is interrupt driven.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The I2C driver is also interrupt driven.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the USB translate_read() function (which is called from a USB interrupt),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; when I try to use the I2C to read the EEPROM, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the I2C interrupts are not serviced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see from the NVIC registers that the I2C interrupt is enabled and pending.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do I need to do to allow the nested interrupt to be serviced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:18:46 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:18:46Z</dc:date>
    <item>
      <title>Interrupt not serviced</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-not-serviced/m-p/534231#M3985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mspahr on Thu Sep 05 10:41:48 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPCXpresso V5.2.6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC11U37&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The project is from LPWare/LPC11xx/Downloads/Software/Sample code bundle for LPC1xx peripherals using NXP LPCXpresso.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have based my project on the example USB ROM MSC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added I2C functionality (using I2C.c from the examples) to talk to an EEPROM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can read and write the EEPROM outside the USB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However the USB is interrupt driven.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The I2C driver is also interrupt driven.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the USB translate_read() function (which is called from a USB interrupt),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; when I try to use the I2C to read the EEPROM, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the I2C interrupts are not serviced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see from the NVIC registers that the I2C interrupt is enabled and pending.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do I need to do to allow the nested interrupt to be serviced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:18:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-not-serviced/m-p/534231#M3985</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt not serviced</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-not-serviced/m-p/534232#M3986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Fri Sep 06 01:04:31 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In the first place, note that the LPC11Uxx and LPC11xx are distinctly different parts, with different peripheral sets and example code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find basic examples for the LPC11U family inside your LPCXpresso installation at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\nxp\LPCXpresso_5.2.6_2137\lpcxpresso\Examples\NXP\LPC1000\LPC11Uxx&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additional information and examples can be downloaded from LPCware at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fnode%2F11538%2F128" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/node/11538/128&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:18:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-not-serviced/m-p/534232#M3986</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt not serviced</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-not-serviced/m-p/534233#M3987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mspahr on Fri Sep 06 09:46:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a couple typos, it should read&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The project is from LPCWare/LPC11Uxx/Downloads/Software/Sample code bundle for LPC11Uxx peripherals using NXP LPCXpresso.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the right examples for the processor I am using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The USB_ROM_MSC and I2C examples work fine by themselves.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the I2C is called from within the USB interrupt, the I2C interrupt is never serviced.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-not-serviced/m-p/534233#M3987</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt not serviced</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-not-serviced/m-p/534234#M3988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Sun Sep 08 12:42:50 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;In the USB translate_read() function (which is called from a USB interrupt),&lt;BR /&gt;when I try to use the I2C to read the EEPROM, &lt;BR /&gt;the I2C interrupts are not serviced.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may assign higher priority to the I2C interrupt than USB, for nested interrupts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#define NVIC_PRIORITY_LOWEST&amp;nbsp;&amp;nbsp; ((1&amp;lt;&amp;lt;__NVIC_PRIO_BITS) - 1)
#define NVIC_PRIORITY_LOWER&amp;nbsp;&amp;nbsp;&amp;nbsp; ((1&amp;lt;&amp;lt;__NVIC_PRIO_BITS) - 2)

int main (void)
{
&amp;nbsp; ...
&amp;nbsp; NVIC_SetPriority( I2C_IRQn, NVIC_PRIORITY_LOWER&amp;nbsp; );
&amp;nbsp; NVIC_SetPriority( USB_IRQn, NVIC_PRIORITY_LOWEST );

&amp;nbsp; NVIC_EnableIRQ( I2C_IRQn ); //&amp;nbsp; enable I2C interrrupt 
&amp;nbsp; NVIC_EnableIRQ( USB_IRQn ); //&amp;nbsp; enable USB interrrupt
&amp;nbsp; /* now connect */
&amp;nbsp; pUsbApi-&amp;gt;hw-&amp;gt;Connect( hUsb, 1 );
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-not-serviced/m-p/534234#M3988</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:18:48Z</dc:date>
    </item>
  </channel>
</rss>

