NuMicro® NUC029LEE/NUC029SEE32-bit Arm® Cortex® -M0 MicrocontrollerAug, 2018 Page 144 of 497 Rev 1.00NUMICRO® NUC029LEE/NUC029SEE TECHNICAL REFERENCE MANUAL6.4.4 Functional Description6.4.4.1 Flash Memory OrganizationThe 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 theirapplication to APROM and set system to boot from APROM.ISP loader program memory is designed for a loader to implement In-System-Programmingfunction. 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 andprogrammed through ISP procedure. The size of each erase unit is 512 bytes. The Data Flashand application program share the same 128 KB memory, if DFEN (Data Flash Enable) bit inCONFIG0 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, bootselect, Brown-out voltage level, Data Flash base address, etc…. User configuration works like afuse for power on setting and loaded from flash memory to its corresponding control registersduring chip powered on.In NuMicro® Family, the flash memory organization is different to system memory map. Flashmemory organization is used when user using ISP command to read, program or erase flashmemory. System memory map is used when CPU access flash memory to fetch code or data. Forexample, When system is set to boot from LDROM by CBS = 01b, CPU will be able to fetch codeof LDROM from 0x0 ~ 0x1FFF. However, if user want to read LDROM by ISP, they still need toread 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, DataFlash and user configuration.Block Name Device Type Size Start Address End AddressAPROM128 KB Data FlashEnable128 KB - Data FlashSize 0x0000_0000 0x20000 – Data Flash Size- 1Data FlashDisable 128 KB 0x0000_0000 0x0001_FFFFData Flash128 KB Data FlashEnable 0x20000-DFBADR DFBADR 0x0001_FFFFData FlashDisable 0 KB N/A N/ALDROM 128 KB 8 KB 0x0010_0000 0x0010_1FFFUserConfiguration 128 KB 2 words 0x0030_0000 0x0030_0004Table 6.4-1 Memory Address Map