<?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: LPC4370 SPIFI initializing fail (boot from SPIFI)</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-SPIFI-initializing-fail-boot-from-SPIFI/m-p/566502#M17316</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 Thu Apr 07 08:17:41 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you debug this project?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then it would be good to step into the function spifiInitDevice() and find out where it fails. There are several action which can return an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The map file of your project looks rather ok, it seems that all relevant objects are in RAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know what you mean with "all memory looks as 0x2000c000".&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;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:51:23 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:51:23Z</dc:date>
    <item>
      <title>LPC4370 SPIFI initializing fail (boot from SPIFI)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-SPIFI-initializing-fail-boot-from-SPIFI/m-p/566501#M17315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by datdds on Thu Mar 17 05:58:35 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry my English is not good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using LPCLINK2 as LPC4370 evaluation board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I try to rewrite SPI Flash memory ,after boot from SPIFI. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Debugging below code, LPCSPIFILIB library use model example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(main() located on SRAM.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int main(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SystemCoreClockUpdate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Board_Init();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// spifi initialize&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Initialize LPCSPIFILIB library, reset the interface */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;spifiInit(LPC_SPIFI_BASE, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Register the family for the device */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spifiRegisterFamily(spifi_REG_FAMILY_CommonCommandSet);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Return the number of devices this library supports */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int idx = spifiGetSuppFamilyCount();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Get required memory for detected device, this may vary per device family */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t memSize = spifiGetHandleMemSize(LPC_SPIFI_BASE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (memSize == 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* No device detected, error */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t *lmem = malloc(memSize);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Initialize and detect a device and get device context */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SPIFI_HANDLE_T * pSpifi = spifiInitDevice(&amp;amp;lmem, sizeof(lmem), LPC_SPIFI_BASE, SPIFLASH_BASE_ADDRESS);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (pSpifi == NULL) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Error initializing device */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--&amp;gt;while(1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It has entered the while(1); loop. Why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition.Oddly all memory looks as 0x2000c000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337945"&gt;memory_test.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:51:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-SPIFI-initializing-fail-boot-from-SPIFI/m-p/566501#M17315</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4370 SPIFI initializing fail (boot from SPIFI)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-SPIFI-initializing-fail-boot-from-SPIFI/m-p/566502#M17316</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 Thu Apr 07 08:17:41 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you debug this project?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then it would be good to step into the function spifiInitDevice() and find out where it fails. There are several action which can return an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The map file of your project looks rather ok, it seems that all relevant objects are in RAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know what you mean with "all memory looks as 0x2000c000".&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;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:51:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-SPIFI-initializing-fail-boot-from-SPIFI/m-p/566502#M17316</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4370 SPIFI initializing fail (boot from SPIFI)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-SPIFI-initializing-fail-boot-from-SPIFI/m-p/566503#M17317</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:05:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-SPIFI-initializing-fail-boot-from-SPIFI/m-p/566503#M17317</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4370 SPIFI initializing fail (boot from SPIFI)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-SPIFI-initializing-fail-boot-from-SPIFI/m-p/566504#M17318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Did you ever find a solution to this problem? &amp;nbsp;If so, could you please update this post? &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 19:08:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-SPIFI-initializing-fail-boot-from-SPIFI/m-p/566504#M17318</guid>
      <dc:creator>chrisbelsky</dc:creator>
      <dc:date>2016-09-26T19:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4370 SPIFI initializing fail (boot from SPIFI)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-SPIFI-initializing-fail-boot-from-SPIFI/m-p/566505#M17319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is another thread running on this issue at the moment in the LPCXpresso IDE forum :&amp;nbsp;&lt;A href="https://community.nxp.com/thread/434100"&gt;https://community.nxp.com/thread/434100&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 20:05:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-SPIFI-initializing-fail-boot-from-SPIFI/m-p/566505#M17319</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-09-26T20:05:33Z</dc:date>
    </item>
  </channel>
</rss>

