<?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: SPIFI reset in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-reset/m-p/547181#M13447</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 May 16 12:41:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi mb1391,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please reset QSPI flash before using it. Below instruction sequence will reset the Windbond device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // reset spifi flash&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SPIFI_CMD = (0xffu &amp;lt;&amp;lt; 24) | // opcode 0xFF (read reset) for winbond&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(0x1 &amp;lt;&amp;lt; 21) | // frame form indicating opcode only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(0x0 &amp;lt;&amp;lt; 19) | // field form indicating all serial&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(0); // datalen&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(SPIFI_STAT &amp;amp; 2); // wait for command to complete&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please check LPC40xx user manual for register details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your QSPI flash device may have different reset sequence. Please check datasheet of QSPI flash device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:32:44 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:32:44Z</dc:date>
    <item>
      <title>SPIFI reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-reset/m-p/547180#M13446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mb1391 on Sat Feb 15 02:11:01 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem regarding SPIFI software reset. I am using LPC-40xx controller for my product, and LPCXpresso v6.1.0 IDE for firmware development.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have managed to get the SPIFI working for storage of data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works perfectly fine with Power On reset, but when I add watchdog reset, the hardware gets stuck at the first accessing attempt of SPIFI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The initialization generates error code 0x2000A (No operative serial flash (JEDEC ID all zeroes or all ones)) after such reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The user manual mentions that SPIFI is disabled on reset, which is not mentioned in the errata; on the other hand LPC-43xx supports peripheral reset for SPIFI (reset#53).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The registers for sending commands or addresses also are not supported in LPC-40xx so as to send reset commands.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct me if I am wrong about the registers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any fix / workaround for resetting the SPIFI?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:32:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-reset/m-p/547180#M13446</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI reset</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-reset/m-p/547181#M13447</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 May 16 12:41:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi mb1391,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please reset QSPI flash before using it. Below instruction sequence will reset the Windbond device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // reset spifi flash&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SPIFI_CMD = (0xffu &amp;lt;&amp;lt; 24) | // opcode 0xFF (read reset) for winbond&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(0x1 &amp;lt;&amp;lt; 21) | // frame form indicating opcode only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(0x0 &amp;lt;&amp;lt; 19) | // field form indicating all serial&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(0); // datalen&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(SPIFI_STAT &amp;amp; 2); // wait for command to complete&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please check LPC40xx user manual for register details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your QSPI flash device may have different reset sequence. Please check datasheet of QSPI flash device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:32:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-reset/m-p/547181#M13447</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:32:44Z</dc:date>
    </item>
  </channel>
</rss>

