Download Print this page

ST STM32L4+ Series Reference Manual page 149

Hide thumbs Also See for STM32L4+ Series:

Advertisement

RM0432
When WRP is active, it cannot be erased or programmed. Consequently, a software mass
erase cannot be performed if one area is write-protected.
If an erase/program operation to a write-protected part of the Flash memory is attempted,
the write protection error flag (WRPERR) is set in the FLASH_SR register. This flag is also
set for any write access to:
Note:
When the memory read protection level is selected (RDP level = 1), it is not possible to
program or erase Flash memory if the CPU debug features are connected (JTAG or single
wire) or boot code is being executed from RAM or System Flash, even if WRP is not
activated.
Note:
To validate the WRP options, the option bytes must be reloaded through the OBL_LAUNCH
bit in Flash control register.
Note:
When DBANK=0, it is the user's responsibility to make sure that no overlapping occurs on
the WRP zone.
WRP registers values
WRPxy_STRT =
WRPxy_END
WRPxy_STRT >
WRPxy_END
WRPxy_STRT <
WRPxy_END
3.6
FLASH interrupts
Interrupt event
End of operation
Operation error
Read error
ECC correction
1. EOP is set only if EOPIE is set.
2. OPERR is set only if ERRIE is set.
OTP area part of the Flash memory that can never be written like the ICP
PCROP area.
(x=1/2 y= A/B)
Table 19. Flash interrupt request
Event flag
(1)
EOP
(2)
OPERR
RDERR
ECCC
Table 18. WRP protection
Page WRPxy is protected.
No WRP area.
– The pages from WRPxy_STRT to WRPxy_END are
protected.
Event flag/interrupt
clearing method
Write EOP=1
Write OPERR=1
Write RDERR=1
Write ECCC=1
RM0432 Rev 6
Embedded Flash memory (FLASH)
WRP protection area
Interrupt enable control
RDERRIE
ECCCIE
bit
EOPIE
ERRIE
149/2301
168

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32L4+ Series and is the answer not in the manual?