SOLVED - Debugging custom board through ST Link 2 using SWD interface. Fail in launch sequence
I am using v 1.5 of STM32CubeIDE, and an ST link v2 running firmware V2J37S7.
I have chosen the CPU that I have on my custom board (STM32F410R8T6), configured my periphials and written some code. However, I face an issue when trying to debug the program, or run it on the hardware. When I click the debug button, the debug viewer appears shortly, where i can press run and terminate, before it snaps out of it, and shows this error:
The console outputs the following:
I have messed around with my debug configuration settings. They can be seen here:
My connections from ST link to MCU are:
St link -> Stm32
Pin 1 (MCU VDD) -> VCC (3.3 V)
Pin 7(SWDIO) -> PA13
Pin 9 (SWCLK) ->PA14
Pin 10 (GND) -> (Common GND)
Pin 15(NRST) -> NRST
Listening on onboard testpoints with oscilloscope shows 3.3 V on pin 1 and 7, and 0 V on Pins 9, 10 and 15. When i press debug i can see the datastream on SWDIO and SWCLK. Nothing appears on NRST.
The LED on the ST link shines red when connected to the board. When i press debug it blinks red/green and pauses at green for some time, before going back to red, and the error message pops up. A GDB server logfile is outputted, that can be seen below:
