<?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: spifi 18xx</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-18xx/m-p/527743#M9459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by coco on Thu Sep 12 02:23:13 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The 1830 that I'm using is Cortex M3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For verification, I compiled the original sample code (from lpcopen) with keil and it can run with no issue. But once, I ported that project to xpresso , it just hangs at the spifi_init. It really looks like a porting issue, but the code is so straightforward that I don't know where to look. Anyone manage to compile+run this code with xpresso / gcc? &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:15:43 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:15:43Z</dc:date>
    <item>
      <title>spifi 18xx</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-18xx/m-p/527741#M9457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by coco on Wed Sep 11 00:35:05 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;has been trying to port the sample spifi keil project to xpresso project (for LPC1830 board) and encounter some problem, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* spifi_drv_M3.lib , how do convert this .lib to .a? or is renaming the file to .a good enough?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* how to load this .lib to ram? I tried to rename the .lib to .a and the compilation pass, but it hangs at spifi_init(). I suspect it's because I need to load this function to ram. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I added this to my .ld file but from the map file, it doesn't seem to be correctly loaded to RAM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.data_func : ALIGN(4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; FILL(0xff)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libspifi_drv_M3.a (.text)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; . = ALIGN(4) ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} &amp;gt; RamLoc96 AT&amp;gt;RO_MEM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;* also tried the driver recommended by this thread: &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-errata-and-part-version-information%23comment-1023028" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/spifi-errata-and-part-version-information#comment-1023028&lt;/A&gt;&lt;SPAN&gt; , but it hangs at this line:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; SCnSCB-&amp;gt;ACTLR &amp;amp;= ~2; // disable Cortex write buffer to avoid exceptions when switching back to SPIFI for execution&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-18xx/m-p/527741#M9457</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: spifi 18xx</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-18xx/m-p/527742#M9458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by noahk on Wed Sep 11 15:44:11 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi coco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The spifi xip storage example is not a complete driver. It illustrates some spifi usage and hopefully will ease the process of writing a suitable driver for your application. The SCnSCB write is meant to disable the cortex write buffer. Perhaps the chip you are using doesn't have this bit. I believe this bit exists on the M3 and the M4, but not the M0 or M0+. This was written for the LPC4350, and you are using an 18xx (not sure which exactly). Can you check the which Cortex the chip has?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Noah&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:15:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-18xx/m-p/527742#M9458</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: spifi 18xx</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-18xx/m-p/527743#M9459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by coco on Thu Sep 12 02:23:13 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The 1830 that I'm using is Cortex M3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For verification, I compiled the original sample code (from lpcopen) with keil and it can run with no issue. But once, I ported that project to xpresso , it just hangs at the spifi_init. It really looks like a porting issue, but the code is so straightforward that I don't know where to look. Anyone manage to compile+run this code with xpresso / gcc? &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:15:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/spifi-18xx/m-p/527743#M9459</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:15:43Z</dc:date>
    </item>
  </channel>
</rss>

