<?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のトピックSPIFI doesn't work at cold boot/reset</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-doesn-t-work-at-cold-boot-reset/m-p/799351#M32142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the Embedded artists LPC4357 board.&amp;nbsp; I configure the system clock&amp;nbsp;to 204MHz and the spifi clock (using the E divider) to 102MHz.&amp;nbsp; When running my code in the debugger, it works just fine.&amp;nbsp; I can read and execute from the SPIFI.&amp;nbsp; However, after performing a board reset or cold boot which loads and runs the code, accessing the SPIFI fails&amp;nbsp;at the point that I set the E divisor to 2 (102MHz).&amp;nbsp; I've checked the datasheet for the qspi on the board (w25q16dv) and it says it's max freq is 104MHz.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i lower the spifi clock, it starts working again in both use cases mentioned above.&lt;/P&gt;&lt;P&gt;I am using the spifilib v1.14 under lpcxpresso v8.2.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the SPIFI to work at 102MHz from cold boot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2018 00:15:58 GMT</pubDate>
    <dc:creator>gregjohnson</dc:creator>
    <dc:date>2018-07-31T00:15:58Z</dc:date>
    <item>
      <title>SPIFI doesn't work at cold boot/reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-doesn-t-work-at-cold-boot-reset/m-p/799351#M32142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the Embedded artists LPC4357 board.&amp;nbsp; I configure the system clock&amp;nbsp;to 204MHz and the spifi clock (using the E divider) to 102MHz.&amp;nbsp; When running my code in the debugger, it works just fine.&amp;nbsp; I can read and execute from the SPIFI.&amp;nbsp; However, after performing a board reset or cold boot which loads and runs the code, accessing the SPIFI fails&amp;nbsp;at the point that I set the E divisor to 2 (102MHz).&amp;nbsp; I've checked the datasheet for the qspi on the board (w25q16dv) and it says it's max freq is 104MHz.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i lower the spifi clock, it starts working again in both use cases mentioned above.&lt;/P&gt;&lt;P&gt;I am using the spifilib v1.14 under lpcxpresso v8.2.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the SPIFI to work at 102MHz from cold boot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 00:15:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-doesn-t-work-at-cold-boot-reset/m-p/799351#M32142</guid>
      <dc:creator>gregjohnson</dc:creator>
      <dc:date>2018-07-31T00:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI doesn't work at cold boot/reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-doesn-t-work-at-cold-boot-reset/m-p/799352#M32143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="268368" data-username="gregjohnson" href="https://community.nxp.com/people/gregjohnson"&gt;Greg Johnson&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you initialize the SPIFI pins to high speed?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This is a setting which just configures the pins for good electrical performance at this high frequency&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Did you prepare the SPI flash for this clock speed?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Also the qSPI device needs to be prepared for the higher speed (see links below)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Did you perform the clock setup change from SRAM or did you bite the hands which feed you?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Changing the clock setup for the SPIFI might generate some sort of glitches on the interface (from the qSPI point of view) which can cause a crash.&amp;nbsp;You need to locate the function which is doing the clock change in internal SRAM. This requires to locate the SPIFI library in SRAM as well&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I recommend you to check the SPIFI presentation of the following link:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-333596"&gt;LPC key feature_SPIFI&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 17:01:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-doesn-t-work-at-cold-boot-reset/m-p/799352#M32143</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2018-08-01T17:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI doesn't work at cold boot/reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-doesn-t-work-at-cold-boot-reset/m-p/799353#M32144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Victor,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have all 6 pins set to high speed.&lt;/P&gt;&lt;P&gt;I have performed the change from on board flash and sram, Both have the same result.&lt;/P&gt;&lt;P&gt;Regarding "preparing the SPI flash for this clock speed", do you mean setting the QUAD_READ and QUAD_WRITE options on the qspi itself?&amp;nbsp; I am also doing this.&amp;nbsp; Is there something else that needs to be done to "prepare" the qspi?&amp;nbsp; I did not see it in the "links below", although the presentation was quite informative. What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 22:48:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-doesn-t-work-at-cold-boot-reset/m-p/799353#M32144</guid>
      <dc:creator>gregjohnson</dc:creator>
      <dc:date>2018-08-01T22:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI doesn't work at cold boot/reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-doesn-t-work-at-cold-boot-reset/m-p/799354#M32145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Greg,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't understand the following statement.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have performed the change from on board flash and sram, Both have the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In the presentation attach to the community post that I put before you can read the following information:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Boot ROM initialize SPIFI clock either 32MHz or 18MHz. If user code needs higher SPIFI, performance, code must re-configure SPIFI, Note that such code must NOT run from SPIFI&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When you are making this are you sure you are running from the SRAM?&amp;nbsp;&lt;/P&gt;&lt;P&gt;You mentioned before that if you lower the&amp;nbsp;spifi clock&amp;nbsp;then the program runs as it should. Could you please tell me at which value you are setting the spifi clock?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 15:29:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-doesn-t-work-at-cold-boot-reset/m-p/799354#M32145</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2018-08-02T15:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI doesn't work at cold boot/reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-doesn-t-work-at-cold-boot-reset/m-p/799355#M32146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To clarify the previous statements, when I said that I performed from on board flash and sram I meant that I built my program both ways to see if it would make a difference.&amp;nbsp; I point was that I was not running out of SPIFI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I resolved this.&amp;nbsp;&amp;nbsp;I had the reset parameter of "spifiInit" function set to false.&amp;nbsp; I figured that the BOOT ROM would have already done this so I didn't need to.&amp;nbsp; Obviously that was not correct.&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 15:35:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-doesn-t-work-at-cold-boot-reset/m-p/799355#M32146</guid>
      <dc:creator>gregjohnson</dc:creator>
      <dc:date>2018-08-03T15:35:41Z</dc:date>
    </item>
  </channel>
</rss>

