SWCU193A April 2023 – August 2024 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 |