STM32G030F6P6 STMCubeProgrammer
Hi,
After I program an STM32G030F6P6 I can't connect again with the STMCubeProgrammer. I have checked that my boot pin is in the correct position but still I keep on getting the error:

I have used a simple program that got generated by STM32CubeIde to download to the microcontroller.
Is there a setting that sets the chip protected orso when programming the microcontroller?
Kind regards
edit: the simple program sets PA2 to USART_TX and PA3 to USART_RX, don't know it this could give an issue.

