<?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: LPC4330 SPIFI lib</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-SPIFI-lib/m-p/556132#M15103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Sun May 15 09:22:10 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you are trying to manipulate, the code you are using to do this should not be running from SPIFI - i.e. you need to be running that portion of your codebase from RAM. There are several previous threads in the forums about how to approach doing this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:39:44 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:39:44Z</dc:date>
    <item>
      <title>LPC4330 SPIFI lib</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-SPIFI-lib/m-p/556130#M15101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cto4260 on Tue May 10 12:29:04 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i want to use the LPC 4330 NGX Xplorer board with the onboard SPIFI in &lt;/SPAN&gt;&lt;STRONG&gt;quad mode&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the spifilib example from the 4330 LPCOpen, but after executing the line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;/* Initialize LPCSPIFILIB library, reset the interface */
spifiInit(LPC_SPIFI_BASE, true);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the LPC does not execute code any more.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 2nd argument (true) means, that the spifilib will reset the SPIFI interface. I think it's not possible, when we execute code from SPIFI while resetting the interface, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marvin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-SPIFI-lib/m-p/556130#M15101</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4330 SPIFI lib</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-SPIFI-lib/m-p/556131#M15102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by inspire on Thu May 12 10:44:52 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me further explain Marvin's problem. (We are working together on this.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact, the software is already placed in the SPIFi with the LPC18_43_SPIFI_16MB_64KB.cfx flash driver. The program can be executed properly from here. We now want to enable the quad mode (the SPIFI doesn't run at maximum speed by default, right?). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marvin tried to use the spifiInit command with the reset-flag enabled. Instead, if the spifiInit command is used without the reset-flag, the program continues but later it hangs at &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;memSize = spifiGetHandleMemSize(LPC_SPIFI_BASE);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a closer look at the exact line where the program hangs and I figured out that always when there is a write to e.g. the pSpifi-&amp;gt;CMD register, the LPC stops.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(In fact, the function steps are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spifiGetHandleMemSize(...) -&amp;gt; spifiPrvPartDetect(...) -&amp;gt; spifiPrvDevDetect(...) -&amp;gt; pPrvspifiPrvDevGetID which is the same as spifiPrvDevGetID(...) -&amp;gt; spifi_HW_SetCmd(...) -&amp;gt; pSpifi-&amp;gt;CMD = cmd;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the debugger is paused, the following error is thrown:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;(crt_emu_cm_redlink) terminating due to loss of debug control&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What exactly causes the program to hang here? Is it caused because the program is already executed from the SPIFI and it is not possible to change the SPIFI settings afterwards? What could we do instead?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;p.s. hi, Marvin &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-SPIFI-lib/m-p/556131#M15102</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4330 SPIFI lib</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-SPIFI-lib/m-p/556132#M15103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Sun May 15 09:22:10 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you are trying to manipulate, the code you are using to do this should not be running from SPIFI - i.e. you need to be running that portion of your codebase from RAM. There are several previous threads in the forums about how to approach doing this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-SPIFI-lib/m-p/556132#M15103</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4330 SPIFI lib</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-SPIFI-lib/m-p/556133#M15104</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 Mon May 16 09:04:44 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Marvin/Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please look into example at below page. As mentioned above you need to relocate portion of the code in the RAM&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=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fproject%2Fnxp-peripherals%2Fspifi-nxp-microcontrollers" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/project/nxp-peripherals/spifi-nxp-microcontrollers&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-SPIFI-lib/m-p/556133#M15104</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4330 SPIFI lib</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-SPIFI-lib/m-p/556134#M15105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:10:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4330-SPIFI-lib/m-p/556134#M15105</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:10:39Z</dc:date>
    </item>
  </channel>
</rss>

