NuMicro® NUC029LEE/NUC029SEE32-bit Arm® Cortex® -M0 MicrocontrollerAug, 2018 Page 150 of 497 Rev 1.00NUMICRO® NUC029LEE/NUC029SEE TECHNICAL REFERENCE MANUALAPROMLDROM(8K)0x0000_00000x0010_00000x0010_1FFFReservedCBS = 10bAPROMLDROM(8K)0x0000_00000x0010_00000x0010_1FFFReservedCBS = 00bLDROM first pageLDROM first pageDefault remapstructureFigure 6.4-4 Executable Range of Code with IAP Function EnabledWhen chip boots with the IAP function enabled, any other page within the executable range ofcode can be mirrored to the first page of executable code (0x0000_0000~0x0000_01FF) anytime. User can change the remap address of the first executing page by filling the target remapaddress to ISPADR and then go through ISP procedure with the Vector Page Re-map command.After changing the remap address, user can check if the change is successful by reading theVECMAP field in the ISPSTA register.6.4.4.5 In-System-Programming (ISP)The NuMicro® NUC029LEE/NUC029SEE supports ISP mode which allows a device to bereprogrammed under software control and avoids system fail risk when download or programmingfail. Furthermore, the capability to update the application firmware makes a wide range ofapplications possible.ISP provides the ability to update system firmware on board. Various peripheral interfaces let ISPloader in LDROM to update application program code easily. The most common method toperform ISP is via UART along with the ISP loader in LDROM. General speaking, PC transfersthe new APROM code through serial port. Then ISP loader receives it and re-programs intoAPROM through ISP commands.6.4.4.6 ISP ProcedureThe NuMicro® NUC029LEE/NUC029SEE supports booting from APROM or LDROM initiallydefined by user configuration. The change of user configuration needs to reboot system to make ittake effect. If user wants to switch between APROM or LDROM mode without changing userconfiguration, he needs to control BS bit of ISPCON control register, then reset CPU by IPRSTC1control register. The boot switching flow by BS bit is shown in the Figure 6.4-5.