We have STM32G0 in one of our projects. We have limited pins on the PCB connector. We need to use 2 connector pins as I2C and SWD same time, to do that we think of connecting the one connector pin to two STM32 pins(SWDIO, I2CSDA for example). We want to use SWD while programming and after the programming, we want to use I2C as the normal state.
Is it possible to program STM32 with SWD and SWCLK without using RST pin and set SWD pins high z state after programming?
- We are wondering if we can use SWDIO and SWCLK pins as GPIO(High z) after programming?
- Can we re-program with SWD after setting high z?
- Do we have to use RST pin while programming with SWD?
- Do we have to use the RST pin while re-programming STM32 with high z SWD pins?