<?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 SPIFI setup for LPC1800/4300 using LPCXpresso 6, running on LPCXplorer board in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-setup-for-LPC1800-4300-using-LPCXpresso-6-running-on/m-p/530863#M10091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Mon Jan 13 05:39:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are two projects for LPC1800 and for LPC4300 which use the SPIFI library under LPCXpresso 6.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- import the files into the workspace and make a 'Build all'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- SPIFI libraries compile without error under GCC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Code runs from SPIFI, using the LPC1830/4330 LPCXplorer board&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- function spifi_init(...) is used to initialize the SPIFI &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- SPIFI speed is set to 90MHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- some data is programmed into the qSPI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- after a successful SPIFI write the application runs into a blinky loop&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Further notes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- the code example uses the libraries coming with LPCXpresso, these are different to the new structure from LPCOpen. These libs are a little bit outdated and will not be maintained anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- if you are doing any new code development, then you should consider to port the SPIFI setup from this example into the current LPCOpen platform &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- NXP will add a SPIFI setup in one of the next LPCOpen releases for LPC1800/4300&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;Original Attachment has been moved to:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338110"&gt;LPC43xx_SPIFI_LPCXpresso6_1.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;Original Attachment has been moved to:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338110"&gt;LPC18xx_SPIFI_LPCXpresso6_1.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:18:35 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:18:35Z</dc:date>
    <item>
      <title>SPIFI setup for LPC1800/4300 using LPCXpresso 6, running on LPCXplorer board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-setup-for-LPC1800-4300-using-LPCXpresso-6-running-on/m-p/530863#M10091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Mon Jan 13 05:39:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are two projects for LPC1800 and for LPC4300 which use the SPIFI library under LPCXpresso 6.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- import the files into the workspace and make a 'Build all'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- SPIFI libraries compile without error under GCC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Code runs from SPIFI, using the LPC1830/4330 LPCXplorer board&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- function spifi_init(...) is used to initialize the SPIFI &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- SPIFI speed is set to 90MHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- some data is programmed into the qSPI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- after a successful SPIFI write the application runs into a blinky loop&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Further notes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- the code example uses the libraries coming with LPCXpresso, these are different to the new structure from LPCOpen. These libs are a little bit outdated and will not be maintained anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- if you are doing any new code development, then you should consider to port the SPIFI setup from this example into the current LPCOpen platform &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- NXP will add a SPIFI setup in one of the next LPCOpen releases for LPC1800/4300&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;Original Attachment has been moved to:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338110"&gt;LPC43xx_SPIFI_LPCXpresso6_1.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;Original Attachment has been moved to:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338110"&gt;LPC18xx_SPIFI_LPCXpresso6_1.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:18:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-setup-for-LPC1800-4300-using-LPCXpresso-6-running-on/m-p/530863#M10091</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI setup for LPC1800/4300 using LPCXpresso 6, running on LPCXplorer board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-setup-for-LPC1800-4300-using-LPCXpresso-6-running-on/m-p/530864#M10092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Meyer on Tue Jan 14 09:00:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey bavarian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;great example thx ;) But I´m using lpcopen 2.0 and the clock api is different. In the systemInit my Spifi clock is set to 102Mhz is it too much? How can i divide it ? can u help me plz. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:18:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-setup-for-LPC1800-4300-using-LPCXpresso-6-running-on/m-p/530864#M10092</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI setup for LPC1800/4300 using LPCXpresso 6, running on LPCXplorer board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-setup-for-LPC1800-4300-using-LPCXpresso-6-running-on/m-p/530865#M10093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wellsk on Tue Jan 14 09:33:21 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You can setup the clock source and divider for SPIFI using the the following code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;Chip_Clock_SetDivider(CLK_IDIV_E, CLKIN_MAINPLL, 4); /* Pick a source and divider here to get as close as possible to your desired rate */
Chip_Clock_SetBaseClock(CLK_BASE_SPIFI, CLKIN_IDIVE, true, false); /* Attach SPIFI clock to CLK_IDIV_E */&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;In the above example, you can use Chip_Clock_SetDivider(CLK_IDIV_E, CLKIN_MAINPLL, 3) to set the SPIFI clock to 68MHz if usnig the 204MHz main system clock (typically PLL setup to 204MHz).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to get closer to 90MHz, you can run the main system clock at 180MHz and use a divider of 2, or try to use a different source clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might need to setup the pin muxing too. You can do it with this code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;/* SPIFI high speed pin mode setup */
STATIC const PINMUX_GRP_T spifipinmuxing[] = {
{0x3, 3,&amp;nbsp; (SCU_PINIO_FAST | SCU_MODE_FUNC3)},/* SPIFI CLK */
{0x3, 4,&amp;nbsp; (SCU_PINIO_FAST | SCU_MODE_FUNC3)},/* SPIFI D3 */
{0x3, 5,&amp;nbsp; (SCU_PINIO_FAST | SCU_MODE_FUNC3)},/* SPIFI D2 */
{0x3, 6,&amp;nbsp; (SCU_PINIO_FAST | SCU_MODE_FUNC3)},/* SPIFI D1 */
{0x3, 7,&amp;nbsp; (SCU_PINIO_FAST | SCU_MODE_FUNC3)},/* SPIFI D0 */
{0x3, 8,&amp;nbsp; (SCU_PINIO_FAST | SCU_MODE_FUNC3)}/* SPIFI CS/SSEL */
};
Chip_SCU_SetPinMuxing(spifipinmuxing, sizeof(spifipinmuxing) / sizeof(PINMUX_GRP_T));&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:18:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-setup-for-LPC1800-4300-using-LPCXpresso-6-running-on/m-p/530865#M10093</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI setup for LPC1800/4300 using LPCXpresso 6, running on LPCXplorer board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-setup-for-LPC1800-4300-using-LPCXpresso-6-running-on/m-p/530866#M10094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Meyer on Fri Jan 17 02:39:37 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank u very much &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This was not my problem. It works fine at 102Mhz for me . I forgot to link the lib in Ram. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can u tell me what the function spifi_program() exactly do ? The comment &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//It is not needed to do spifi_erase before, because spifi_program automatically erases as necessary" is &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;not entirely clear. I guess it is not possible to erase as much as necessary. Correct me if I'm wrong. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx, regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:18:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-setup-for-LPC1800-4300-using-LPCXpresso-6-running-on/m-p/530866#M10094</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI setup for LPC1800/4300 using LPCXpresso 6, running on LPCXplorer board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-setup-for-LPC1800-4300-using-LPCXpresso-6-running-on/m-p/530867#M10095</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 Fri Jan 17 13:15:19 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Meyer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please read the document from below link for detail information about erasing and program functions.&lt;/SPAN&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%2Fsystem%2Ffiles%2FSPIFI_report%2520v0.1.pdf" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/system/files/SPIFI_report%20v0.1.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:18:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-setup-for-LPC1800-4300-using-LPCXpresso-6-running-on/m-p/530867#M10095</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:18:38Z</dc:date>
    </item>
  </channel>
</rss>

