Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Locked Topic Unable to start debugging. unable to establish a connection to gdb (Read 4005 times)
Tiny
Newbies
*
Offline


Posts: 2
Joined: May 20th, 2019
Unable to start debugging. unable to establish a connection to gdb
May 20th, 2019 at 9:22pm
 
I just installed VisualMicro today, mainly to use the debugging features. I created a new project and it compiles and uploads to the board perfectly.

However, when I add breakpoints and rebuild, a window appears that says: "unable to start debugging. unable to establish a connection to gdb"

In the debug window, I get the following information: 
"\arduino\tools\openocd\0.9.0-arduino6-static\bin/openocd.exe" exited with code 1 (0x1)." 

I confirmed that openocd.exe does exist in that directory ,but beyond that I don't know what to do to get the debugger working.

Also what is the difference between gdb debugging and serial debugging? I am mainly looking to get as close to the normal visual studio debugging features, such as monitoring variable values.

I am using a TinyCircuits Tinyscreen+ if that matters.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to start debugging. unable to establish a connection to gdb
Reply #1 - May 21st, 2019 at 11:42am
 
You should use serial debugging until we release a simpler gdb config over the coming week or so. Currently it is for advanced use only.

If you created a "Customer debugger" then you have a debugger_launch.json in your project which you should delete.

Does this solve the issue?
  
Back to top
WWW  
IP Logged
 
Tiny
Newbies
*
Offline


Posts: 2
Joined: May 20th, 2019
Re: Unable to start debugging. unable to establish a connection to gdb
Reply #2 - May 21st, 2019 at 2:43pm
 
Yes, I just figured out serial debugging. thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint