Flash bricked after RDP changes on several STM32G0
Currently developing a product to update the firmware of a product through SWD, i encounter an issue with the flash of the target (STM32G070RB).
After multiple changes in the RPD (from 0->1 & 1->0) the flash of the MCU can't be erased.
Some word will not erase to 0xFFFFFFFF, but instead will be at 0xFFFF0080.
Once it's in that state, changing the RDP to trigger a mass erase will not fix the flash. The STLink is unable to mass erase or page erase the chip, and also unable to program anything to the chip.
Initially i though that my programmer was the issue of the flash error of the target. But when it happens it was when changing the RDP from 1 to 0 with the STLink. I was not sure of that on the first occurrence of the issue. But today it happened again, while not using my own programmer at all.
So i am now sure that it happen after changing the RDP from 1 to 0 using the STLinkV3.
Does anyone already encounter this issue?
