cancel
Showing results for 
Search instead for 
Did you mean: 

Debug STM32L072 using ST-LINK/v2?

GMeta.2
Associate

I am rather new to STM32. Ιn my project, I am using an STM32L072KZU6 and I want to debug the firmware using the ST-LINK/V2-ISOL. I connected both SWDIO and SWDCLK pins to pins 7 and 9 of the ST-LINK/V2-ISOL, along with +3.3 V on pin 1 and ground on pin 4. (Pin 2 is connected to +3.3 V, too.)

In ST32CubeProgrammer, I can connect to the target MCU without problems:

0693W00000aINKGQA4.pngHowever, when I try to use Keil uVision v5.37.0.0 and click on Start/Stop Debugging Session, I get a dialog box with the message "Trace HW not present":

0693W00000aINO1QAO.pngand, when clicking on OK button, another dialog box appears with the message "Error: Target DLL has been cancelled. Debugger aborted!":

0693W00000aINP4QAO.pngAny clues, anyone?

Here are the settings for ST-LINK debugger in Keil:

0693W00000aINQHQA4.png0693W00000aINQbQAO.png0693W00000aINR0QAO.png0693W00000aINRAQA4.png 

1 ACCEPTED SOLUTION

Accepted Solutions

The CM0(+) does not support ITM trace, uncheck the enable box in the trace settings.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

The CM0(+) does not support ITM trace, uncheck the enable box in the trace settings.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
GMeta.2
Associate

@Community member​, that worked for me. Thank you!