I’m trying to use ST-Link V2 to debug my CORE2 code but it is not working.
I have connected the four debug pins of the CORE2 to the 20 pins connector of the ST-Link programmer:
- Reset on pin 15
- SWDIO on pin 7
- GND on pin 20
- SWCLK on pin9
the programmer is correctly connected to the PC (it’s led is red).
When I press F5, there is the cmd prompt st-util.exe that flash the code.
I don’t know if the Target voltage warning is a problem ?
After few seconds, the cmd prompt is like that:
but the ST-LINK is orange (meaning target problem), and the debug console into VS code write
Cannot insert hardware breakpoint 1.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints."
But there isn’t any breakpoint.
The debug tool doesn’t work at all (pause, breakpoints) and neither my code (that works fine with USB loader).
what did I forget?