Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Debugger Fails During Intialization (Read 1240 times)
Caird
Junior Member
**
Offline



Posts: 5
Debugger Fails During Intialization
Oct 3rd, 2017 at 10:49pm
 
During debugging my code compiles, uploads and then ALWAYS stalls during initialization. I never get past the initialization phase. I have checked Windows 10 task list and microgdb.exe is running. I have attached details of error code.
Back to top
 
 
IP Logged
 
anatom74
Junior Member
**
Offline



Posts: 12
Re: Debugger Fails During Intialization
Reply #1 - Oct 7th, 2017 at 6:26am
 
Having exactly the same issue. (fresh install of VS2017 and VM)

openocd error log:

Code:
Open On-Chip Debugger 0.9.0 (2015-05-19-12:06)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
embedded:startup.tcl:60: Error: Can't find C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\53ggn0bh.0i3\Micro Platforms/default/tools/openocd-0.9.0/scripts/{build.openocdscript}
in procedure 'script'
at file "embedded:startup.tcl", line 60 

Back to top
« Last Edit: Oct 7th, 2017 at 6:39am by anatom74 »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 8856
United Kingdom
Re: Debugger Fails During Intialization
Reply #2 - Jan 25th, 2018 at 12:17am
 
Sorry I missed this post.

GDB is different for each board so it is important to give info about the board and code you are using.

There is also ability on the vMicro menu to switch on verbose and "show build properties" which gives us useful into about your config after a build.

After gdb fails to connect the microgdb.exe and/or openocd processes can remain loaded. You can use task manager to terminate them otherwise gdb will certainly not start again.

Below the bin/config/build folder there are some gdb logs that would also be useful.

Please try to gather this info into files and zip and post or email to info[at]visualmicro.com

Back to top
 
WWW  
IP Logged
 
Caird
Junior Member
**
Offline



Posts: 5
Re: Debugger Fails During Intialization
Reply #3 - Jan 27th, 2018 at 2:19am
 
Log files were uploaded via info@visualmicro.com
Back to top
 
 
IP Logged
 
Caird
Junior Member
**
Offline



Posts: 5
Re: Debugger Fails During Intialization
Reply #4 - Jan 27th, 2018 at 7:01pm
 
Tim:

I also have listed a number of error message I get after compiling in the attached file.
Back to top
 
 
IP Logged
 
Caird
Junior Member
**
Offline



Posts: 5
Re: Debugger Fails During Intialization
Reply #5 - Jan 28th, 2018 at 9:09pm
 
Tim:

Please ignore all previous posts. I found the initialization problem. I had Serial.begin(9600) in my code. It has to be Serial.begin(115200) as this is the default baud rate for the Atmel EDBG debugger chip.

The debugger now initializes BUT now I have another problem. The Visual Studio Code Screen goes blank and a small spinning wheel appears. After about 5 min this times out and Visual Studio gives the error message as shown in attached file and my code reappears on the Visual Studio screen.

I have also attached the messages in the Visual Studio "Output" Window and the Visual Micro log files
Back to top
 
 
IP Logged
 
Caird
Junior Member
**
Offline



Posts: 5
Re: Debugger Fails During Intialization
Reply #6 - Jan 28th, 2018 at 9:10pm
 
Tim:

additional file
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 8856
United Kingdom
Re: Debugger Fails During Intialization
Reply #7 - Feb 13th, 2018 at 8:53pm
 
Sorry I missed the posts in this board.

Everything looked good but then stops after the first break instruction.

What hardware and programmer options are you using?

Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print