Thanks, that is good to know! Surely, the error can be caused by different problems. But the thing discussed here is about the problem with the STM32CubeIDE.The debugging of STM32G4xx just wouldn't work with IDE 1.13 and 1.14 - which was clearly a bu...
I had the same weird erase problem with 1.13 - it worked with older versions and also with STM32CubeProgrammer I can still erase and program the microcontroller (STM32G473 in my case) without a problem using the same ST-LINK/V2 and same frequency set...