Unable to reprogram STM32G030F6P6
I am trying to reprogram a STM32G030F6P6 with a St-link V3 but in STM32CubeProgrammer I get: "Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication".
When the chip is brand new I can program it once with no issue, but when I try to change the program I get the error.
The RST pin is connected to the programmer and I'm using Mode: Under reset in STM32CubeProgrammer but it makes no difference.
I can see that the program I have previously uploaded runs correctly because it's blinking an LED. I've also tried connecting the BOOT0 pin to 3v3 and resetting the board but I can still see the LED blinking so it's running the program and not going into boot loader mode.

