'F303 write protection, how does it work?
Reading Embedded Flash memory chapter of RM0316 and can't grab how the write protection is supposed to work.
a) 4.3.2 Write protection says:
It is activated by configuring the WRP[1:0] option bytes
Each other instances where WRP is mentioned says i'ts either WRP[3:0} or, in FLASH_WRPR register description, it's 32 bits, so I guess [1:0] a typo.
b) Okay so we have 32 bits for write protection, and 4.3.2 Write protection says
The write protection is implemented with a granularity of 2 pages.
According to 4.2.1 Flash memory organization:
The memory organization is based on a main memory block containing 128 pages of
2 Kbytes in STM32F303xB/C and STM32F358xC devices, 256 pages of 2 Kbytes in the
STM32F303xD/E
How exactly do 32 bits describe protection of 128 pages (let alone 256 pages), 2 pages per bit?
Thanks,
JW
