Sysprogs forums › Forums › VisualGDB › Debug STM32, Unable to connect to target › Reply To: Debug STM32, Unable to connect to target
January 8, 2024 at 08:11
#35216
Participant
Thanks @support. I was able to fix my issue. Turns out I had to set ‘Debug’ to ‘Serial Wire’ in the SYS tab of the CubeMX interface. This properly assigns the PA13 & PA14 pins to the TMS and TCK signals necessary for debugging with the ST-Link / V2 adapter.
I can now step through my code in Visual Studio.
Thanks again.