The following problem is appearing changing sectors write protection and power disappearing in the middle of a HAL_FLASH_OB_Launch operation. After the next power up, flash options are reset with RDP = 1 and all sectors are read / write protected with SPRMOD enabled (PCROP protected sectors). So the mcu is totally inoperative, the cpu is not able to load the interrupt vector through flash D-Bus.
The starting situation is:
If power cycle the board repeatedly, chaining sector write protection operations, these are the flash options after some resets:
Anyone can confirm that this behavior is correct? Is there any way to mitigate this problem?