NuMicro® NUC029LEE/NUC029SEE
32-bit Arm
®
Cortex
®
-M0 Microcontroller
Aug, 2018
Page
150
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
APROM
LDROM
(8K)
0x0000_0000
0x0010_0000
0x0010_1FFF
Reserved
CBS = 10b
APROM
LDROM
(8K)
0x0000_0000
0x0010_0000
0x0010_1FFF
Reserved
CBS = 00b
LDROM first page
LDROM first page
Default remap
structure
Figure 6.4-4 Executable Range of Code with IAP Function Enabled
When chip boots with the IAP function enabled, any other page within the executable range of
code can be mirrored to the first page of executable code (0x0000_0000~0x0000_01FF) any
time. User can change the remap address of the first executing page by filling the target remap
address 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 the
VECMAP 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 be
reprogrammed under software control and avoids system fail risk when download or programming
fail. Furthermore, the capability to update the application firmware makes a wide range of
applications possible.
ISP provides the ability to update system firmware on board. Various peripheral interfaces let ISP
loader in LDROM to update application program code easily. The most common method to
perform ISP is via UART along with the ISP loader in LDROM. General speaking, PC transfers
the new APROM code through serial port. Then ISP loader receives it and re-programs into
APROM through ISP commands.
6.4.4.6 ISP Procedure
The NuMicro
®
NUC029LEE/NUC029SEE supports booting from APROM or LDROM initially
defined by user configuration. The change of user configuration needs to reboot system to make it
take effect. If user wants to switch between APROM or LDROM mode without changing user
configuration, he needs to control BS bit of ISPCON control register, then reset CPU by IPRSTC1
control register. The boot switching flow by BS bit is shown in the Figure 6.4-5.