5.2.6.16 Register Write Protection

To prevent any single software error from corrupting LCDC behavior, certain registers in the address space can be write-protected by setting the bits WPCFGE, WPITE, WPCRE in the LCDC Write Protection Mode register (LCDC_WPMR).

If a write access to a write-protected register is detected, the Write Protection Violation Status (WPVS) flag in the LCDC Write Protection Status register (LCDC_WPSR) is set and the Write Protection Violation Source (WPVSRC) field indicates the register in which the write access has been attempted.

The WPVS bit is automatically cleared after reading LCDC_WPSR.