References:
- Product Datasheet LPC55S1x/LPC551x Rev. 1.3 - 21 September 2020 page 1 Chapter 2 "Features and benefits"
- LPC55S1x/LPC551x User manual Rev. 1.3 - 16 July 2020 page 4 Chapter 1.2 "Features"
- "Up to 256 kB on-chip flash program memory with flash accelerator and 512 byte page erase and write."
- Product Datasheet LPC55S1x/LPC551x Rev. 1.3 - 21 September 2020 page 47 Table 6 "Memory map overview"
- LPC55S1x/LPC551x User manual Rev. 1.3 - 16 July 2020 page 12 Table 4 "Memory map overview"
- "The last 17 pages (12 KB) are reserved on the 256KB flash devices resulting in 244 KB internal flash memory."
The available on-chip flash with start address 0x00000000 to end address 0x0003FFFF results in 262144 Bytes of on chip flash.
However the last 17 pages are reserved and cannot be used.
With a page size of 512 bytes this results in 17 x 512 = 8704 bytes of on chip flash that cannot be used.
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.
How do I match 8704 bytes to 12 KB?
How do I match 253440 bytes to 244 KB?
Am I missing something here?
I cannot comprehend the sentence
"The last 17 pages (12 KB) are reserved on the 256KB flash devices resulting in 244 KB internal flash memory."
Please elaborate and help me understand which is the last usable on-chip flash address.