<?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: Undocumented SPIFI Interrupt Handler in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undocumented-SPIFI-Interrupt-Handler/m-p/534771#M10883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Sat Jan 09 22:16:57 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: avenuti&lt;/STRONG&gt;&lt;BR /&gt;UM10430 LPC18xx ARM Cortex-M3 microcontroller&lt;BR /&gt;Rev 2.8 - 10 December 2015&lt;BR /&gt;&lt;BR /&gt;This user manual is missing information on the SPIFI Interrupt Handler.&lt;BR /&gt;&lt;BR /&gt;In table 72, Chapter 8 (NVIC), Interrupt ID 30 is listed as "Reserved", but enabling this bit in NVIC-&amp;gt;ISER[0] enables the SPIFI interrupt.&lt;BR /&gt;(The corresponding table in the manual for LPC43xx lists this as the SPIFI interrupt)&lt;BR /&gt;&lt;BR /&gt;Furthermore, cmsis_18xx.h in lpc_chip_18xx in LPC OPEN lists this RESERVED4_IRQn, but calling NVIC_EnableIRQ(RESERVED4_IRQn); also correctly enables the SPIFI interrupt.&lt;BR /&gt;&lt;BR /&gt;cr_startup_lpc18xx.c does declare SPIFI_IRQHandler(), which leads me to believe this interrupt is meant to be supported.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is this simply a mistake in the manual, or is this feature unsupported?&lt;BR /&gt;If it is unsupported, why does the manual list INTEN in table 336 and and INTRQ in table 343, both in Chapter 21 (SPIFI)?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP: Any comments?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:20:34 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:20:34Z</dc:date>
    <item>
      <title>Undocumented SPIFI Interrupt Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undocumented-SPIFI-Interrupt-Handler/m-p/534770#M10882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by avenuti on Wed Jan 06 14:28:21 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;UM10430 LPC18xx ARM Cortex-M3 microcontroller&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rev 2.8 - 10 December 2015&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This user manual is missing information on the SPIFI Interrupt Handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In table 72, Chapter 8 (NVIC), Interrupt ID 30 is listed as "Reserved", but enabling this bit in NVIC-&amp;gt;ISER[0] enables the SPIFI interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(The corresponding table in the manual for LPC43xx lists this as the SPIFI interrupt)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore, cmsis_18xx.h in lpc_chip_18xx in LPC OPEN lists this RESERVED4_IRQn, but calling NVIC_EnableIRQ(RESERVED4_IRQn); also correctly enables the SPIFI interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cr_startup_lpc18xx.c does declare SPIFI_IRQHandler(), which leads me to believe this interrupt is meant to be supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this simply a mistake in the manual, or is this feature unsupported?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is unsupported, why does the manual list INTEN in table 336 and and INTRQ in table 343, both in Chapter 21 (SPIFI)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:20:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undocumented-SPIFI-Interrupt-Handler/m-p/534770#M10882</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Undocumented SPIFI Interrupt Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undocumented-SPIFI-Interrupt-Handler/m-p/534771#M10883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Sat Jan 09 22:16:57 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: avenuti&lt;/STRONG&gt;&lt;BR /&gt;UM10430 LPC18xx ARM Cortex-M3 microcontroller&lt;BR /&gt;Rev 2.8 - 10 December 2015&lt;BR /&gt;&lt;BR /&gt;This user manual is missing information on the SPIFI Interrupt Handler.&lt;BR /&gt;&lt;BR /&gt;In table 72, Chapter 8 (NVIC), Interrupt ID 30 is listed as "Reserved", but enabling this bit in NVIC-&amp;gt;ISER[0] enables the SPIFI interrupt.&lt;BR /&gt;(The corresponding table in the manual for LPC43xx lists this as the SPIFI interrupt)&lt;BR /&gt;&lt;BR /&gt;Furthermore, cmsis_18xx.h in lpc_chip_18xx in LPC OPEN lists this RESERVED4_IRQn, but calling NVIC_EnableIRQ(RESERVED4_IRQn); also correctly enables the SPIFI interrupt.&lt;BR /&gt;&lt;BR /&gt;cr_startup_lpc18xx.c does declare SPIFI_IRQHandler(), which leads me to believe this interrupt is meant to be supported.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is this simply a mistake in the manual, or is this feature unsupported?&lt;BR /&gt;If it is unsupported, why does the manual list INTEN in table 336 and and INTRQ in table 343, both in Chapter 21 (SPIFI)?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP: Any comments?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:20:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undocumented-SPIFI-Interrupt-Handler/m-p/534771#M10883</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Undocumented SPIFI Interrupt Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undocumented-SPIFI-Interrupt-Handler/m-p/534772#M10884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Yappi on Tue Jan 19 08:54:59 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm also interested in using this feature, if it is supported and will be available on 18xx variants going forward.&amp;nbsp; NXP, can you look into this?&amp;nbsp; Is this just a case where the documentation needs to be updated?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:20:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undocumented-SPIFI-Interrupt-Handler/m-p/534772#M10884</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Undocumented SPIFI Interrupt Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undocumented-SPIFI-Interrupt-Handler/m-p/534773#M10885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Wed Jan 20 07:40:13 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SPIFI interrupt is implemented on this chip. We will&amp;nbsp; document it in UM soon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:20:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undocumented-SPIFI-Interrupt-Handler/m-p/534773#M10885</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Undocumented SPIFI Interrupt Handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undocumented-SPIFI-Interrupt-Handler/m-p/534774#M10886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by avenuti on Thu Jan 21 09:58:48 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yappi, MikeSimmonds;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am currently utilizing this interrupt on an 1837 to handle DMA transfers. I have posted details here: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fdma-tofrom-spifi%23comment-1149080" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/forum/dma-tofrom-spifi#comment-1149080&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SPIFI interrupt is triggered when the SPIFI finishes sending a command. For example, if you send a page program command where the data is 512 bytes long, the SPIFI is busy for approximately 110 microseconds (core at 180 MHz, SPIFI clock at 90 MHz) while those bytes are sent to the flash. After this time the SPIFI interrupt is triggered (for my flash chip, the chip itself is busy for another ~380 microseconds while the page is programmed). Note that the interrupt bit 22 (INTEN) of the SPIFI CTRL register must also be set. Your interrupt function should be named 'SPIFI_IRQHandler'. Bit 5 of the SPIFI STAT register (INTRQ) is used to clear the pending interrupt status (note also that there is a typo in the manual for INTRQ, stating that a single bit resets to 5).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've done a lot of work with SPIFI over the past couple months. Feel free to ask any other questions and I'll do my best to respond.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:20:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undocumented-SPIFI-Interrupt-Handler/m-p/534774#M10886</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:20:36Z</dc:date>
    </item>
  </channel>
</rss>

