SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
The flash memory consists of a large MAIN region and several smaller regions, including Factory Configuration (FCFG), Customer Configuration (CCFG), TRIM, and ENGR. The FCFG and CCFG regions can also be referred to as NONMAIN regions. See the device-specific data sheet for flash size information.
Each region of the flash memory is organized as a set of 2KB sectors that can be individually erased. Programming the flash by changing bits from 1 to 0 can be done in increments of one 128-bit word.
Erasing a sector causes the entire contents of the sector to be reset to all 1s. The 2KB sectors are paired with sets of other 2KB sectors that can be individually protected by being marked as read-only. Read-only sectors cannot be erased or programmed, which protects the contents of those blocks from being modified. For information on marking blocks as read-only see Section 7.2.4.1
The TRIM and ENGR regions of the flash are locked and inaccessible to the application for program and erase.