<?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: LPC43xx SPIFI Problem</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554309#M14715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Tue Dec 10 10:52:33 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Taha,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is an example for the Hitex board in the following package:&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; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt; http://www.lpcware.com/content/nxpfile/lpc4350apdlzip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in this folder:&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; .\lpc43xx\Examples\SPIFI\SPIFI_Test\Keil&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp; I set following the compiler defines for the target Hitex_Flash:&amp;nbsp; CORE_M4 USE_SPIFI_LIB HITEX_BOARD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp; I programmed it, connected a terminal program with 115kbaud and then started the software with the debugger. It worked fine (takes rather long)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp; When I started it with a hardware reset it worked fine as well&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp; I attached the AXF/HEX/BIN files in case you don't have the Keil environment. Then you can at least program it with FlashMagic or another debugger tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+&amp;nbsp; If you step through this code maybe you can identify where things going wrong in your code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+&amp;nbsp; Is it possible for you to erase the SPIFI with a debugger tool ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+&amp;nbsp; You can also use FlashMagic for that (serial programming, press ISP button during reset)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+&amp;nbsp; Check what you've done on the clock tree after the SPIFI init. Did you maybe change the CPU frequency? Or the divider which is used for the SPIFI block ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:40:05 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:40:05Z</dc:date>
    <item>
      <title>LPC43xx SPIFI Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554306#M14712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TahaSN on Mon Dec 09 12:55:44 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Hitex Board A4 and using QuadSPI to save my data. I am using SPIFI Library to erase and program the SPIFI. I was able to do both but suddenly I cannot program or erase without having any error returns from those routines. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;do&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Valid = pSpifi-&amp;gt;spifi_program (&amp;amp;obj, (char *)Data, &amp;amp;opers);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(Valid);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the above statement, I get the error 0x20005 which says device status error. I am not sure why I am getting device status error. Can somebody explain why that error is being generated?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Taha&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554306#M14712</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx SPIFI Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554307#M14713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Tue Dec 10 01:30:48 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Taha,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"suddenly" means what?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- did it run fine and suddenly it stopped working?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- did you continue to work on your software and then one time the SPIFI programming didn't work anymore?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first case is pretty unlikely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The second case could mean that you did something in software which is in conflict with the SPIFI:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- you changed pin settings of the SPIFI i/f&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- you changed the CPU frequency or other clock setting which affect the SPIFI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- you changed something by accident in the obj struct &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you try with an earlier version of your code. Or with one of our examples in LPCOpen which can be found at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.lpcware.com/content/nxpfile/lpcopen-platform"&gt;http://www.lpcware.com/content/nxpfile/lpcopen-platform&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:40:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554307#M14713</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx SPIFI Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554308#M14714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TahaSN on Tue Dec 10 07:30:29 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Bavarian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I did continue to work on my software which resulted in SPIFI problem. I already tried to go back to my previous version where SPIFI was working fine but it isn't anymore. I also forgot to mention that SPIFI does initialize properly but I am not able to program or erase without "Device Status Error".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I noticed is, when I try to debug my software through NOR Flash, SPIFI gives me some problem. While running the software directly from local RAM works fine. Now I don't understand what could have I done to create this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Taha &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:40:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554308#M14714</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx SPIFI Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554309#M14715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Tue Dec 10 10:52:33 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Taha,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is an example for the Hitex board in the following package:&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; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt; http://www.lpcware.com/content/nxpfile/lpc4350apdlzip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in this folder:&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; .\lpc43xx\Examples\SPIFI\SPIFI_Test\Keil&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp; I set following the compiler defines for the target Hitex_Flash:&amp;nbsp; CORE_M4 USE_SPIFI_LIB HITEX_BOARD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp; I programmed it, connected a terminal program with 115kbaud and then started the software with the debugger. It worked fine (takes rather long)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp; When I started it with a hardware reset it worked fine as well&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;nbsp; I attached the AXF/HEX/BIN files in case you don't have the Keil environment. Then you can at least program it with FlashMagic or another debugger tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+&amp;nbsp; If you step through this code maybe you can identify where things going wrong in your code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+&amp;nbsp; Is it possible for you to erase the SPIFI with a debugger tool ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+&amp;nbsp; You can also use FlashMagic for that (serial programming, press ISP button during reset)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+&amp;nbsp; Check what you've done on the clock tree after the SPIFI init. Did you maybe change the CPU frequency? Or the divider which is used for the SPIFI block ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:40:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554309#M14715</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx SPIFI Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554310#M14716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ravikumar.karri@nxp.com on Tue Apr 29 21:38:45 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi NXP support/Taha,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any update in this issue resolving. I face the same issue thats raised by Taha (but on the LPC18xx Hitex Eval board) where in which i can call spifi_init function call successfully but not&amp;nbsp; able to call the spifi_erase and spifi_program successfully. When the spifi_init calls are success with the following information seen during the captures. Please find the attachments, in which first one is a reply for 0x9F command (Read identification) that reply spansion FL64 part details properly and the next is 0x35 command (Read Configuration register) that reply with 0x3F.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when i call spifi_erase it throws an error with code 0x20005.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE: Before this i was able to call spifi_erase and spifi_program successfully. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any reply is appreciated. Thanks in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:40:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554310#M14716</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx SPIFI Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554311#M14717</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 Tue Apr 29 21:52:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Ravikumar,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which tool chain are you using? Can you post your code here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you mean your code worked before and now it is not working?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:40:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554311#M14717</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx SPIFI Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554312#M14718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ravikumar.karri@nxp.com on Tue Apr 29 22:27:10 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi mc,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the prompt reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using keil with uvision IDE along with the Seggers jlink JTAG.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached the code snippet for you, this example is from the "NXP MCU SW Application Team". Attached the code and abract of the example code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, the code worked fine for me before and its not working now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE: The code is slightly change with some test instructions in place but the same was in working condition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:40:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554312#M14718</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx SPIFI Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554313#M14719</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 02 16:09:26 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi ravi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure you are placing SPIFI library in the RAM. The library should be inside RAM . You can take example from below thread. This is done for LPCxpresso board.&lt;/SPAN&gt;&lt;BR /&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%2Fcontent%2Fforum%2Fspifi-setup-lpc18004300-using-lpcxpresso-6-running-lpcxplorer-board" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/spifi-setup-lpc18004300-using-lpcxpresso-6-running-lpcxplorer-board&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also check the latest library with source done for LPC4300&amp;nbsp; at&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%2Flpcspifilib_lpcxpresso_0_04_beta.zip" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/system/files/lpcspifilib_lpcxpresso_0_04_beta.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can adapt it for your board and LPC18xx.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:40:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554313#M14719</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx SPIFI Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554314#M14720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ravikumar.karri@nxp.com on Mon May 05 21:40:38 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi mc,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, i am sure that i have placed the SPIFI library in the RAM region only. Please find the attached .map file for your reference with which i have confirmed that the library is placed in Internal RAM only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can use the above provided libraries but would like to know the reason for working condition and non-working condition of the same project on the same board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i checked the status register and configuration registers their values are 0x1E and 0x3E respectively by issuing 0x05 and 0x35 commands.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know of any such issue solved or have come across. Thanks in Advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ravikumar Karri&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:40:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554314#M14720</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43xx SPIFI Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554315#M14721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Feo Elektronik WR on Mon May 26 08:58:18 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;We had a very similar problem using "spifi_drv_M3.lib" (file date 2012-12-11, extracted from "LPC18xx_SPIFI_LPCXpresso6_1-zip" or "libfalcon_m3_spifi_drv.a" on LPC1850:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spifi_init() worked, spifi_erase() and spifi_program() not, returning 0x00020004 (ERR_SPIFI_OPERAND_ERROR).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason was a bug in the spifi lib. Here's what I wrote to NXP support:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;I analyzed the disassembly of spifi_erase() from entry point until call of checkAd(). Please see the attached commented screenshot of the debug session.&lt;BR /&gt; &lt;BR /&gt;spifi_erase() passes a local copy of *opers to cheakAd() that has not yet been initialized at this point.&lt;BR /&gt;Only AFTER calling checkAd(), the local copy is initialized with *opers by memcpy_spifi_lib().&lt;BR /&gt;Thus, checkAd() is checking random garbage on the stack frame instead of *opers, so sometimes it fails, sometimes not. This is exactly what we observe.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is easy to spot in disassembly of spifi_erase(): bl checkAd comes before bl memcpy_spifi_lib. It should be the other way round.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:40:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43xx-SPIFI-Problem/m-p/554315#M14721</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:40:09Z</dc:date>
    </item>
  </channel>
</rss>

