Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> GDB Debugging >> VS2017 STM32 "Unable to start debugging... "
https://www.visualmicro.com/forums/YaBB.pl?num=1565367711

Message started by Indrid kold on Aug 9th, 2019 at 5:21pm

Title: VS2017 STM32 "Unable to start debugging... "
Post by Indrid kold on 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.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=STLinkV2DebugTest_Build.txt (37 KB | 7 )
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=STLinkV2DebugTest_DebugOutput.txt (0 KB | 7 )

Title: Re: VS2017 STM32 "Unable to start debugging... "
Post by Visual Micro on 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[/code]

Title: Re: VS2017 STM32 "Unable to start debugging... "
Post by Indrid kold on Aug 12th, 2019 at 2:32pm
Good morning and thanks for your response. The .log file is attached.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=STLinkV2DebugTest_ino_DebugOpenOCD.txt (0 KB | 13 )

Title: Re: VS2017 STM32 "Unable to start debugging... "
Post by Simon Hopkinson on 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[/code]
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)

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.