
M0A21/M0A23 Series
May 06, 2022
Page
221
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
Supports system memory vector remap function
ISP Commands
ISP Command
FMC_ISPCMD FMC_ISPADDR
FMC_ISPDAT
FLASH Page Erase 0x22
Valid address of Flash memory origination.
It must be 512 bytes page alignment.
N/A
FLASH 32-bit
Program
0x21
Valid address of Flash memory origination
FMC_ISPDAT: Programming Data
FLASH 32-bit Read 0x00
Valid address of Flash memory origination. It
must be word alignment.
FMC_ISPDAT: Return Data
Read Company ID 0x0B
0x0000_0000
FMC_ISPDAT: 0x0000_00DA
Read Checksum
0x0D
Keep address of “Run Checksum
Calculation”
FMC_ISPDAT: Return Checksum
Run Checksum
Calculation
0x2D
Valid start address of memory origination
It must be 512 bytes page alignment
FMC_ISPDAT: Size
It must be 512 bytes alignment
Read Unique ID
0x04
0x0000_0000
FMC_ISPDAT: Unique ID Word 0
0x0000_0004
FMC_ISPDAT: Unique ID Word 1
0x0000_0008
FMC_ISPDAT: Unique ID Word 2
0x0000_0070
FMC_ISPDAT[11:0]: Built-in VBG ADC
conversion result
Vector Remap
0x2E
Valid address in APROM or LDROM. It must
be 512 bytes alignment
N/A
Table 6.4-2 ISP Command List
ISP Procedure
The FMC controller provides embedded Flash memory read, erase and program operation. Several
control bits of FMC control register are write-protected, thus it is necessary to unlock before setting.
After unlocking the protected register bits, user needs to set the FMC_ISPCTL control register to decide
to update LDROM, APROM or User Configuration block, and then set ISPEN (FMC_ISPCTL[0]) to
enable ISP function.
Once the FMC_ISPCTL register is set properly, user can set FMC_ISPCMD (refer to above ISP
command list) for specify operation. Set FMC_ISPADDR for target Flash memory based on Flash
memory origination. FMC_ISPDAT can be used to set the data to program or used to return the read
data according to FMC_ISPCMD.