STM32G030 PCROP bit missing. Clearing RDP does not perform mass erase
Hi,
I'm using the STM32G030 MCU and I want to perform programming using the CLI commands. When using the STM32 ST-LINK utility and opening the option bytes window, I can see the PCROP bit which if I set, the MCU performs a mass erase when RDP bit changes from 1 to zero, which is the expected behaviour.
The issue is that this bit is not found in the datasheet. Also, when I use STM32CubeProgrammer, the PCROP bit is not shown as part of the option bytes ( I only see RDP setting). Moreover, when using the STM32CubeProgrammer CLI command to clear RDP bit, the subsequent mass erase command does not work. At this stage, a strange thing is seen. If I try to clear RDP bit using the STM32CubeProgrammer CLI command, a warning is returned that RDP is already set to zero so no action is taken. BUT, if than I connect to the MCU using the STM32 ST-LINK utility and open the option bytes window, the RDP bit is still read as level 1 !?!?!?
Can anyone put some light on this? Why two application shows different setting for RDP? Also, how can I set/reset the PCROP for this MCU (does it even officially have this bit and if not, how can I perform mass erase when clearing RDP bit)?
Thanks
