2025-12-22 11:52 AM - last edited on 2025-12-22 12:51 PM by Andrew Neil
As the subject says. I am not able to connect and re-program or debug my STM32C011 ICs after I set up SWCLK and SWDATA as ADC on my firmware.
NRST pin is connected and it still doen't work
I know this is expected behaviour, but I should be able to re-program it by connecting the NRST pin to the debugger, however, this is still not fixing the problem.
2025-12-22 12:41 PM - edited 2025-12-22 3:43 PM
If you configure the SWD pins as something else, you will be unable to use SWD to access the chip with default connection options.
To recover, here are your options:
Some suggestions:
Edit: I'm sure that I tested this before, but after testing again, the programmer does actually toggle NRST and connect before Reset_Handler gets to do anything. So it works even if SWD is reconfigured immediately.