[Solved] SWD pins used by mistake in code, now locked out of chip (G030F6 - TSSOP20). How to revert?
By mistake, I ended up setting PA14 (SWCLK) as an input GPIO. Didn't catch the mistake until after the MCU had already been flashed. So, after that I can't connect to it anymore using ST-Link.
Since I'm using a STM32G030F6 (TSSOP-20) chip, for this chip the boot0 pin is shared with the same PA14. I did try to connect PA14/BOOT0 to either GND and VCC (and reset the board afterwards each time), but I wasn't able to get it into bootloader mode.
Also attempted to connect with STM32CubeProgrammer via UART (to UART2, on PA2/PA3), but that wasn't successful, despite many attempts. As I understand, to access UART1 I need to set the SysCfg remapping registers so PA11/PA12 become PA9/PA10, so connecting (via CubeProg) to UART1 didn't work either.
So I've run out of options to try to connect to chip and re-flash it with a code that enables PA14 as SWCLK again.
Are there additional procedures I could try?
