<?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 Re: LPC551x usable on-chip flash - last usable on-chip flash address in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC551x-usable-on-chip-flash-last-usable-on-chip-flash-address/m-p/1408496#M47818</link>
    <description>&lt;P&gt;The LPC5516 divides the internal flash into 8 uniform 32 kByte sectors:&lt;BR /&gt;- 0x0000'7FFF..0x0000'0000 Sector 1 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0000'FFFF..0x0000'8000 Sector 2 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0001'7FFF..0x0001'0000 Sector 3 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0001'FFFF..0x0001'8000 Sector 4 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0002'7FFF..0x0002'0000 Sector 5 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0002'FFFF..0x0002'8000 Sector 6 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0003'7FFF..0x0003'0000 Sector 7 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0003'8000..0x0003'FFFF Sector 8 with 32768 bytes (64 x 512 bytes)&lt;/P&gt;&lt;P&gt;Sector number 8 is a bit special:&lt;BR /&gt;- 0x0003'8000..0x0003'CFFF --&amp;gt; 40 x 512 bytes are physcially available according to rom flash API&lt;BR /&gt;- 0x0003'D000..0x0003'D7FF --&amp;gt; 4 x 512 bytes seem physically unavailable and not accessible&lt;BR /&gt;- 0x0003'D800..0x0003'DDFF --&amp;gt; 3 x 512 bytes seem physcially available and accessible&lt;BR /&gt;- 0x0003'DE00..0x0003'FFFF --&amp;gt; 17 x 512 bytes "The last 17 pages are reserved and cannot be used"&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 09:43:23 GMT</pubDate>
    <dc:creator>danielgull</dc:creator>
    <dc:date>2022-02-03T09:43:23Z</dc:date>
    <item>
      <title>LPC551x usable on-chip flash - last usable on-chip flash address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC551x-usable-on-chip-flash-last-usable-on-chip-flash-address/m-p/1390578#M47451</link>
      <description>&lt;P&gt;References:&lt;BR /&gt;- Product Datasheet LPC55S1x/LPC551x Rev. 1.3 - 21 September 2020 page 1 Chapter 2 "Features and benefits"&lt;BR /&gt;- LPC55S1x/LPC551x User manual Rev. 1.3 - 16 July 2020 page 4 Chapter 1.2 "Features"&lt;BR /&gt;- "Up to 256 kB on-chip flash program memory with flash accelerator and 512 byte page erase and write."&lt;/P&gt;&lt;P&gt;- Product Datasheet LPC55S1x/LPC551x Rev. 1.3 - 21 September 2020 page 47 Table 6 "Memory map overview"&lt;BR /&gt;- LPC55S1x/LPC551x User manual Rev. 1.3 - 16 July 2020 page 12 Table 4 "Memory map overview"&lt;BR /&gt;- "The last 17 pages (12 KB) are reserved on the 256KB flash devices resulting in 244 KB internal flash memory."&lt;/P&gt;&lt;P&gt;The available on-chip flash with start address 0x00000000 to end address 0x0003FFFF results in 262144 Bytes of on chip flash.&lt;/P&gt;&lt;P&gt;However the last 17 pages are reserved and cannot be used.&lt;BR /&gt;With a page size of 512 bytes this results in 17 x 512 = 8704 bytes of on chip flash that cannot be used.&lt;/P&gt;&lt;P&gt;The available on-chip flash with start address 0x00000000 to end address 0x0003DDFF results in 253440 Bytes (i.e. 262144 - 17 x 512 = 253440) of on chip flash that can be used.&lt;/P&gt;&lt;P&gt;How do I match 8704 bytes to 12 KB?&lt;BR /&gt;How do I match 253440 bytes to 244 KB?&lt;/P&gt;&lt;P&gt;Am I missing something here?&lt;BR /&gt;I cannot comprehend the sentence&lt;/P&gt;&lt;P&gt;"The last 17 pages (12 KB) are reserved on the 256KB flash devices resulting in 244 KB internal flash memory."&lt;/P&gt;&lt;P&gt;Please elaborate and help me understand which is the last usable on-chip flash address.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 07:22:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC551x-usable-on-chip-flash-last-usable-on-chip-flash-address/m-p/1390578#M47451</guid>
      <dc:creator>danielgull</dc:creator>
      <dc:date>2021-12-22T07:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC551x usable on-chip flash - last usable on-chip flash address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC551x-usable-on-chip-flash-last-usable-on-chip-flash-address/m-p/1391060#M47468</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;danielgull,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The correct is "&lt;/SPAN&gt;&lt;SPAN&gt;LPC55(S)16 it is 244Kbytes for user application, 12Kbytes for PFR region. ".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also use ROM api&amp;nbsp;FLASH_GetProperty() to read, refer to flashaip demo under SDK:&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;/* Get flash properties kFLASH_ApiEraseKey */&lt;BR /&gt;FLASH_GetProperty(&amp;amp;flashInstance, kFLASH_PropertyPflashBlockBaseAddr, &amp;amp;pflashBlockBase);&lt;BR /&gt;FLASH_GetProperty(&amp;amp;flashInstance, kFLASH_PropertyPflashSectorSize, &amp;amp;pflashSectorSize);&lt;BR /&gt;FLASH_GetProperty(&amp;amp;flashInstance, kFLASH_PropertyPflashTotalSize, &amp;amp;pflashTotalSize);&lt;BR /&gt;FLASH_GetProperty(&amp;amp;flashInstance, kFLASH_PropertyPflashPageSize, &amp;amp;PflashPageSize);&lt;/P&gt;
&lt;P&gt;/* print welcome message */&lt;BR /&gt;PRINTF("\r\n PFlash Example Start \r\n");&lt;BR /&gt;/* Print flash information - PFlash. */&lt;BR /&gt;PRINTF("\tkFLASH_PropertyPflashBlockBaseAddr = 0x%X\r\n", pflashBlockBase);&lt;BR /&gt;PRINTF("\tkFLASH_PropertyPflashSectorSize = %d\r\n", pflashSectorSize);&lt;BR /&gt;PRINTF("\tkFLASH_PropertyPflashTotalSize = %d\r\n", pflashTotalSize);&lt;BR /&gt;PRINTF("\tkFLASH_PropertyPflashPageSize = 0x%X\r\n", PflashPageSize);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;br&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 03:46:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC551x-usable-on-chip-flash-last-usable-on-chip-flash-address/m-p/1391060#M47468</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-12-23T03:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: LPC551x usable on-chip flash - last usable on-chip flash address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC551x-usable-on-chip-flash-last-usable-on-chip-flash-address/m-p/1408470#M47817</link>
      <description>&lt;P&gt;Hello Alice&lt;/P&gt;&lt;P&gt;I have a question:&lt;/P&gt;&lt;P&gt;In the project settings menù of the LPC5516 we found that the size of the Flash is 0x38000 that is 224KByte instead of 244KByte.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/169462i66D3D23C136F53A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What is the right flash dimension?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Mirco&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 08:56:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC551x-usable-on-chip-flash-last-usable-on-chip-flash-address/m-p/1408470#M47817</guid>
      <dc:creator>mse_videotec</dc:creator>
      <dc:date>2022-02-03T08:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC551x usable on-chip flash - last usable on-chip flash address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC551x-usable-on-chip-flash-last-usable-on-chip-flash-address/m-p/1408496#M47818</link>
      <description>&lt;P&gt;The LPC5516 divides the internal flash into 8 uniform 32 kByte sectors:&lt;BR /&gt;- 0x0000'7FFF..0x0000'0000 Sector 1 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0000'FFFF..0x0000'8000 Sector 2 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0001'7FFF..0x0001'0000 Sector 3 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0001'FFFF..0x0001'8000 Sector 4 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0002'7FFF..0x0002'0000 Sector 5 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0002'FFFF..0x0002'8000 Sector 6 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0003'7FFF..0x0003'0000 Sector 7 with 32768 bytes (64 x 512 bytes)&lt;BR /&gt;- 0x0003'8000..0x0003'FFFF Sector 8 with 32768 bytes (64 x 512 bytes)&lt;/P&gt;&lt;P&gt;Sector number 8 is a bit special:&lt;BR /&gt;- 0x0003'8000..0x0003'CFFF --&amp;gt; 40 x 512 bytes are physcially available according to rom flash API&lt;BR /&gt;- 0x0003'D000..0x0003'D7FF --&amp;gt; 4 x 512 bytes seem physically unavailable and not accessible&lt;BR /&gt;- 0x0003'D800..0x0003'DDFF --&amp;gt; 3 x 512 bytes seem physcially available and accessible&lt;BR /&gt;- 0x0003'DE00..0x0003'FFFF --&amp;gt; 17 x 512 bytes "The last 17 pages are reserved and cannot be used"&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC551x-usable-on-chip-flash-last-usable-on-chip-flash-address/m-p/1408496#M47818</guid>
      <dc:creator>danielgull</dc:creator>
      <dc:date>2022-02-03T09:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC551x usable on-chip flash - last usable on-chip flash address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC551x-usable-on-chip-flash-last-usable-on-chip-flash-address/m-p/1408497#M47819</link>
      <description>&lt;P&gt;My finding above - I hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:44:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC551x-usable-on-chip-flash-last-usable-on-chip-flash-address/m-p/1408497#M47819</guid>
      <dc:creator>danielgull</dc:creator>
      <dc:date>2022-02-03T09:44:10Z</dc:date>
    </item>
  </channel>
</rss>

