<?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 LPC18_43_SPIFIdriver_Generic reports wrong page size  in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC18-43-SPIFIdriver-Generic-reports-wrong-page-size/m-p/622243#M32439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use Micron Micron N25Q64 with LPC1853.&lt;BR /&gt;It's page size is 256 bytes.&lt;BR /&gt;But testapp of LPC18_43_SPIFIdriver_Generic reports wrong size 16384 bytes.&lt;BR /&gt;How can I fix it?&lt;BR /&gt;I use LPCXpresso v8.2.0 [Build 647] [2016-07-18] .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2016 03:01:32 GMT</pubDate>
    <dc:creator>masatoshishioya</dc:creator>
    <dc:date>2016-09-16T03:01:32Z</dc:date>
    <item>
      <title>LPC18_43_SPIFIdriver_Generic reports wrong page size</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC18-43-SPIFIdriver-Generic-reports-wrong-page-size/m-p/622243#M32439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use Micron Micron N25Q64 with LPC1853.&lt;BR /&gt;It's page size is 256 bytes.&lt;BR /&gt;But testapp of LPC18_43_SPIFIdriver_Generic reports wrong size 16384 bytes.&lt;BR /&gt;How can I fix it?&lt;BR /&gt;I use LPCXpresso v8.2.0 [Build 647] [2016-07-18] .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 03:01:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC18-43-SPIFIdriver-Generic-reports-wrong-page-size/m-p/622243#M32439</guid>
      <dc:creator>masatoshishioya</dc:creator>
      <dc:date>2016-09-16T03:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18_43_SPIFIdriver_Generic reports wrong page size</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC18-43-SPIFIdriver-Generic-reports-wrong-page-size/m-p/622244#M32440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In&amp;nbsp;the Init() function of FlashPrg.c within the flash driver sources (in the examples directory of the LPCXpresso installation) &amp;nbsp;you will see the comment:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;// Update FlashDevice page size&lt;BR /&gt; // Note that this is not the true page size from the detected SPIFI device, but&lt;BR /&gt; // is actually the size of a single buffer of data that the debugger will send&lt;BR /&gt; // down to the flash driver. This will normally be 16KB (limited by the available&lt;BR /&gt; // RAM on the device) but cannot be larger than a single sector.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The flash driver is basically using a pseudo page size of 16KB in its high level code to allow it to transfer larger chunks of data from the host, down over USB to the target MCU. The lower levels of the LPCSPIFILIB code will then use the actual true page size of 256 bytes for programming each page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This helps to dramatically increase the speed of programming the flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 06:52:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC18-43-SPIFIdriver-Generic-reports-wrong-page-size/m-p/622244#M32440</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-09-16T06:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18_43_SPIFIdriver_Generic reports wrong page size</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC18-43-SPIFIdriver-Generic-reports-wrong-page-size/m-p/622245#M32441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this library for external memory boot loader  for Flash Magic.&lt;/P&gt;&lt;P&gt;ProgramPage(...) fubction is called every 256 bytes while receiving &lt;/P&gt;&lt;P&gt;write data via UART3.&lt;/P&gt;&lt;P&gt;With FlashDevice.szPage 16384, ProgramPage does not return.&lt;/P&gt;&lt;P&gt;So I overwrite FlashDevice.szPage 256 after Init().&lt;/P&gt;&lt;P&gt;Then ProgramPage(...) works normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I use another function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;souarse code:&lt;/P&gt;&lt;P&gt;     // programs a page in memory&lt;/P&gt;&lt;P&gt;     // returns 0 for OK, 1 for failed&lt;/P&gt;&lt;P&gt;int Memory_ProgramPage&lt;/P&gt;&lt;P&gt;       (&lt;/P&gt;&lt;P&gt;       unsigned long adr,                                       // &lt;/P&gt;&lt;P&gt;address of page&lt;/P&gt;&lt;P&gt;       unsigned long sz,                                        // size &lt;/P&gt;&lt;P&gt;of page&lt;/P&gt;&lt;P&gt;       unsigned char *buf                                       // data &lt;/P&gt;&lt;P&gt;to program into page&lt;/P&gt;&lt;P&gt;       )&lt;/P&gt;&lt;P&gt;     {&lt;/P&gt;&lt;P&gt;         uint32_t ret;&lt;/P&gt;&lt;P&gt;         ret = ProgramPage(adr, FlashDevice.szPage, buf);&lt;/P&gt;&lt;P&gt;         return ret;&lt;/P&gt;&lt;P&gt;     }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 13:48:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC18-43-SPIFIdriver-Generic-reports-wrong-page-size/m-p/622245#M32441</guid>
      <dc:creator>masatoshishioya</dc:creator>
      <dc:date>2016-09-19T13:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18_43_SPIFIdriver_Generic reports wrong page size</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC18-43-SPIFIdriver-Generic-reports-wrong-page-size/m-p/622246#M32442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you should probably extract the underlying LPCSPIFLIB code from the LPCXpresso flash driver. Keeping the flash driver code and data structures in your application code makes little sense. The data structures in particular are there to allow the host debugger and the flash driver running on the target MCU to interact - they make no sense when using LPCSPIFILIB as part of your own application, when you can access&amp;nbsp;the data structures within the library code itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 07:18:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC18-43-SPIFIdriver-Generic-reports-wrong-page-size/m-p/622246#M32442</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-09-20T07:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18_43_SPIFIdriver_Generic reports wrong page size</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC18-43-SPIFIdriver-Generic-reports-wrong-page-size/m-p/622247#M32443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may also want to take a look at the examples available from:&amp;nbsp;&lt;A class="link-titled" href="http://www.nxp.com/pages/:SPIFI-NXP-MICROCONTROLLERS" title="http://www.nxp.com/pages/:SPIFI-NXP-MICROCONTROLLERS"&gt;LPC SPIFI Peripheral|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LPCXpresso Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 07:25:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC18-43-SPIFIdriver-Generic-reports-wrong-page-size/m-p/622247#M32443</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2016-09-20T07:25:56Z</dc:date>
    </item>
  </channel>
</rss>

