SWCU193 April 2023 CC2340R2 , CC2340R5 , CC2340R5-Q1
FLASH read-only protection is controlled with the VIMS.WEPRA and VIMS.WEPRB registers. FLASH sector size is 2KB so for 512KB of FLASH there are 256 sectors. Read-only protection has different granularity depending on the sectors being protected.
Each bit in VIMS.WEPRA is responsible for one sector as shown in Table 7-1.
WEPRA Bit no. | 31 | 30 | ... | 2 | 1 | 0 |
---|---|---|---|---|---|---|
Protected Sector | 31 | 30 | ... | 2 | 1 | 0 |
Each bit in VIMS.WEPRB is responsible for 8 sectors as shown in Table 7-2.
WEPRB Bit no. | 27 | 26 | ... | 2 | 1 | 0 |
---|---|---|---|---|---|---|
Protected Sector | 248-255 | 240-247 | ... | 48-55 | 40-47 | 32-39 |