<?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>LPC MicrocontrollersのトピックRe: Interrupt not being implemented</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541811#M12356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Mon Aug 03 06:16:51 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: brobson&lt;/STRONG&gt;&lt;BR /&gt;I've not seen this one before, got any advice on this one?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could be useful if you give us a hint which toolchain / debugger you are using...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A Forum search with 'Cannot Write to RAM for Flash Algorithms' could help also...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:44:41 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:44:41Z</dc:date>
    <item>
      <title>Interrupt not being implemented</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541808#M12353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brobson on Mon Aug 03 05:09:28 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all, I'm new to programming with the lpc systems so my problem might be something quite basic that I am not aware of.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to get an interrupt to occur whenever a change happens on pio1_8 and have the following bits of code to do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(pin set up)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;PIO1_8 |=&amp;nbsp; 0x11;//selects ct16b1_CAP0 and sets pull up resistor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(timer set up, in main.c)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |=&amp;nbsp; 0x00000180;// Enable CT16B0 &amp;amp; CT16B1 Clocks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_TMR16B1-&amp;gt;PC = 0x00000000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_TMR16B1-&amp;gt;PR = 0x00000010;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_TMR16B1-&amp;gt;TCR |= 0x01;//ENABLES TIMER AND PRESCALER COUNTER &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_TMR16B1-&amp;gt;CCR |= 0x04;//SETS INTERRUPT ON STATE CHANGE AT CT16B1_CAP0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_TMR16B1-&amp;gt;CTCR |= 0x0;//SELECTS COUNT INPUT AND FLAGS TO BE RAISED ON EITHER EDGE&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_EnableIRQ(TIMER_16_1_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(interrupt handler)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void TIMER16_1_IRQHandler (void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i++;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO2-&amp;gt;DATA |= (0xFC0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO2-&amp;gt;DATA &amp;amp;= (0xF3F);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO3-&amp;gt;DATA |= (0x03F);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO3-&amp;gt;DATA &amp;amp;= (~0xFC0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_TMR16B1-&amp;gt;IR |= 0x10;//RESET FLAG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the pin set with a pull up resistor and I am connecting a ground wire to change it, however the software doesn't seem to be picking it up. Can anyone see something wrong with my code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:44:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541808#M12353</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt not being implemented</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541809#M12354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Mon Aug 03 05:30:23 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: brobson&lt;/STRONG&gt;&lt;BR /&gt;Can anyone see something wrong with my code?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, your code snippet is not showing which toolchain you are using and if IOCON is enabled at all, so I would suggest to use the debugger to check IOCON bit in SYSAHBCLKCTRL and IOCON pin settings...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: Usually the timer is started after setup is finished and interrupt is enabled&amp;nbsp; ;-) &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:44:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541809#M12354</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt not being implemented</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541810#M12355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brobson on Mon Aug 03 05:53:18 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks I'll give that a try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I've just received this error when I tried to debug:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Load "C:\\Users\\Brandon \\Documents\\LPC1114\\Firmware\\Build\\BTLE.axf" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cannot Write to RAM for Flash Algorithms !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Erase Failed!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Flash Download failed&amp;nbsp; -&amp;nbsp; "Cortex-M0"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flash Load finished at 13:44:10&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've not seen this one before, got any advice on this one?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:44:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541810#M12355</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt not being implemented</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541811#M12356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Mon Aug 03 06:16:51 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: brobson&lt;/STRONG&gt;&lt;BR /&gt;I've not seen this one before, got any advice on this one?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could be useful if you give us a hint which toolchain / debugger you are using...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A Forum search with 'Cannot Write to RAM for Flash Algorithms' could help also...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:44:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541811#M12356</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt not being implemented</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541812#M12357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brobson on Mon Aug 03 06:34:19 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using kiel uvision 5 debugger, I followed the steps in a forum post about erasing the flash memory, I'm now getting a different error message related to the u-link. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My new error is a memory mismatch:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Address:0x00000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;value: 0x80&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;expected 0x00&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried writing directly to flash as a post suggested but I can't seem to get rid of this error&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:44:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541812#M12357</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt not being implemented</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541813#M12358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Mon Aug 03 06:39:57 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: brobson&lt;/STRONG&gt;&lt;BR /&gt;I'm using kiel uvision 5 debugger...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'kiel' has a forum with the confusing name &lt;/SPAN&gt;&lt;A href="http://http://www.keil.com/forum/"&gt;www.keil.com/forum/&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:44:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interrupt-not-being-implemented/m-p/541813#M12358</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:44:42Z</dc:date>
    </item>
  </channel>
</rss>

