12.2.1.1 Flash
The PIC32CM LS00/LS60 Flash can be split in
up to five regions:
- The first two regions belongs to the BOOT region and can be configured to support a first-level bootloader for the application.
- The other regions belongs to the APPLICATION region and relate to the application itself.
The BOOT region can be split in up to two sub-regions:
- The Secure (S) sub-region
- The Non-Secure Callable (NSC) sub-region
The APPLICATION region can be split in up to three sub-regions:
- The Secure (S) sub-region
- The Non-Secure Callable (NSC) sub-region
- The Non-Secure (NS) sub-region
Each sub-region size can be configured using the NVM User (UROW) and Boot
Configuration (BOCOR) rows bit fields:
- BOCOR.BOOTPROT corresponds to the size of the (S) + (NSC) sub-regions of the BOOT region
- BOCOR.BNSC corresponds to the size of the (NSC) sub-region of the BOOT region
- UROW.AS corresponds to the size of the (S) + (NSC) sub-regions of the APPLICATION region
- UROW.ANSC corresponds to the size of the (NSC) sub-region of the APPLICATION region
Note: The remaining size of the
Flash corresponds to the size of the (NS) sub-region of the APPLICATION region
Important: Refer to “Memory
and Peripheral Security Configurations” section for more details on the
programming of BOOTPROT, BNSC, AS, and ANSC parameters.