Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
VS2017 STM32 "Unable to start debugging... " (Read 180 times)
Indrid kold
Junior Member
**
Offline



Posts: 10
VS2017 STM32 "Unable to start debugging... "
Aug 9th, 2019 at 5:21pm
 
I'm working to get GDB working with an STM32F103C8 board. I can successfully program the board using an STLinkV2. My vMicro version is 1908.5.1. STLink upgraded to latest via STCubeProgrammer. When I attempt to start debug a dialog stating "...Unable to establish a link to GDB..." appears. Build text is attached, thanks for any assistance.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: VS2017 STM32 "Unable to start debugging... "
Reply #1 - Aug 10th, 2019 at 11:14am
 
Thanks for the info. Can you also please see if there are any .log files in

Code:
C:\Users\Wilmore\AppData\Local\Temp\VMBuilds\STLinkV2DebugTest\stm32duino_genericSTM32F103C\Debug 

Back to top
 
WWW  
IP Logged
 
Indrid kold
Junior Member
**
Offline



Posts: 10
Re: VS2017 STM32 "Unable to start debugging... "
Reply #2 - Aug 12th, 2019 at 2:32pm
 
Good morning and thanks for your response. The .log file is attached.
Back to top
 
 
IP Logged
 
Simon Hopkinson
Administrator
*****
Offline



Posts: 40
Re: VS2017 STM32 "Unable to start debugging... "
Reply #3 - Aug 12th, 2019 at 8:08pm
 
Testing on my setup it currently reports as below in the output when its all connected correctly, but fails as yours does when either my USB Lead is bad, or when the VID/PID being searched for is incorrect (they normally prompt more clearly about this).

Code:
Info : STLINK v2 JTAG v29 API v2 SWIM v7 VID 0x0483 PID 0x3748 


A few more questions:-

1) Can you confirm what the source / instructions to update the STLink if possible?

2) Would you be able to confirm the successful upload was using the "STLinkv2 + OpenOCD (VMicro)" Menu option?

3) If (2) = YES - does it still works since updating the STLink? (please attach output if this works)

4) Finally, what does it report as in Device Manager > USB devices > STM32 STLink > Details > Hardware IDs  (something like USB\VID_0483&PID_3748)
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print