
NuMicro® NUC029LEE/NUC029SEE
32-bit Arm
®
Cortex
®
-M0 Microcontroller
Aug, 2018
Page
144
of
497
Rev 1.00
N
U
MICRO
®
N
UC02
9L
E
E
/N
UC029
S
E
E
T
E
CHN
ICA
L R
E
F
E
R
E
NC
E
M
A
NU
A
L
6.4.4 Functional Description
6.4.4.1 Flash Memory Organization
The NuMicro
®
NUC029LEE/NUC029SEE flash memory consists of program memory (APROM),
Data Flash, ISP loader program memory (LDROM), and user configuration.
Program memory is main memory for user applications and called APROM. User can write their
application to APROM and set system to boot from APROM.
ISP loader program memory is designed for a loader to implement In-System-Programming
function. LDROM is independent to APROM and system can also be set to boot from LDROM.
Therefore, user can use LDROM to avoid system boot fail when code of APROM was corrupted.
Data Flash is used for user to store data. It can be read by ISP read or memory read and
programmed through ISP procedure. The size of each erase unit is 512 bytes. The Data Flash
and application program share the same 128 KB memory, if DFEN (Data Flash Enable) bit in
CONFIG0 is enabled, the Data Flash base address is defined by DFBADR and its size is
(0x20000 - DFBADR), At the same time, the APROM size will be (128 KB
– Data Flash size).
User configuration provides several bytes to control system logic, such as flash security lock, boot
select, Brown-out voltage level, Data Flash base address, etc
…. User configuration works like a
fuse for power on setting and loaded from flash memory to its corresponding control registers
during chip powered on.
In NuMicro
®
Family, the flash memory organization is different to system memory map. Flash
memory organization is used when user using ISP command to read, program or erase flash
memory. System memory map is used when CPU access flash memory to fetch code or data. For
example, When system is set to boot from LDROM by CBS = 01b, CPU will be able to fetch code
of LDROM from 0x0 ~ 0x1FFF. However, if user want to read LDROM by ISP, they still need to
read the address of LDROM as 0x0010_0000 ~ 0x0010_1FFF.
Table 6.4-1 and Figure 6.4-2 show the address mapping information of APROM, LDROM, Data
Flash and user configuration.
Block Name
Device Type
Size
Start Address
End Address
APROM
128 KB
Data Flash
Enable
128 KB - Data Flash
Size
0x0000_0000
0x20000
– Data Flash Size
- 1
Data Flash
Disable
128 KB
0x0000_0000
0x0001_FFFF
Data Flash
128 KB
Data Flash
Enable
0x20000-DFBADR
DFBADR
0x0001_FFFF
Data Flash
Disable
0 KB
N/A
N/A
LDROM
128 KB
8 KB
0x0010_0000
0x0010_1FFF
User
Configuration
128 KB
2 words
0x0030_0000
0x0030_0004
Table 6.4-1 Memory Address Map