How SWD works when it is not assigned in CubeIDE ?
Hello I am using : STM32L031G6U6.
I am confused how programming the MCU works. I don't have let's say SWDIO and SWCLK pins declared in CubeIDE. Then how it works ? Why it works this way ?
I read something that when I use NRST pin to reset manually then the pins GPIO are automatically assigned as SWD but I could read it anywhere in Reference Manual typing NRST. I only found how BOOT works which I also don't understand what do these modes mean like selecting boot area ... :

In my other PCB I only used SWDIO and SWCLK and GND and it was resetting the MCU without me using NRST pin. So I am a bit confused how it works and why I sometime have to use NRST and sometime not.
I wanted to use SWDIO and SWCLK for other purpose but I wanted to know how it works and can I do it ? What is a step by step method to program MCU ? Should I hold NRST and send program until it says 100% ?
