UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
419 of 464
NXP Semiconductors
UM10850
Chapter 31: LPC5410x Flash API
Section 31.5 “USART ISP commands” on page 423
31.3.5 Flash partitions
Some IAP and ISP commands operate on sectors and specify sector numbers. In
addition, a page erase command is available. The size of a sector is 32 KB and the size of
a page is 256 Byte. One sector contains 128 pages. Sector 0 and page 0 are located at
address 0x0000 0000.
31.3.6 Code Read Protection (CRP)
Code Read Protection is a mechanism that allows the user to enable different levels of
security in the system so that access to the on-chip flash and use of the ISP can be
restricted. When needed, CRP is invoked by programming a specific pattern in flash
location at 0x0000 02FC. IAP commands are not affected by the code read protection.
Important: any CRP change becomes effective only after the device has gone
through a power cycle.
Table 473. Flash sectors and pages
Sector
number
Sector
size [KB]
Page numbers
Address range
0
32
0 - 127
0x0000 0000 - 0x0000 7FFF
1
32
128 - 255
0x0000 8000 - 0x0000 FFFF
2
32
256 - 383
0x0001 0000 - 0x0001 7FFF
3
32
384 - 511
0x0001 8000 - 0x0001 FFFF
4
32
512 - 639
0x0002 0000 - 0x0002 7FFF
5
32
640 - 767
0x0002 8000 - 0x0002 FFFF
6
32
768 - 895
0x0003 0000 - 0x0003 7FFF
7
32
896 - 1023
0x0003 8000 - 0x0003 FFFF
8
32
1024 - 1151
0x0004 0000 - 0x0004 7FFF
9
32
1152 - 1279
0x0004 8000 - 0x0004 FFFF
10
32
1280 - 1407
0x0005 0000 - 0x0005 7FFF
11
32
1408 - 1535
0x0005 8000 - 0x0005 FFFF
12
32
1536 - 1663
0x0006 0000 - 0x0006 7FFF
13
32
1664 - 1791
0x0006 8000 - 0x0006 FFFF
14
32
1792 - 1919
0x0007 0000 - 0x0007 7FFF
15
32
1920 - 2047
0x0007 8000 - 0x0007 FFFF