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
Normal Topic Debugger Fails During Intialization (Read 5768 times)
Caird
Newbies
*
Offline


Posts: 5
Joined: Oct 3rd, 2017
Debugger Fails During Intialization
Oct 3rd, 2017 at 9:49pm
Print Post  
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.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
anatom74
Junior Member
**
Offline


Posts: 31
Joined: Aug 8th, 2015
Re: Debugger Fails During Intialization
Reply #1 - Oct 7th, 2017 at 5:26am
Print Post  
Having exactly the same issue. (fresh install of VS2017 and VM)

openocd error log:

Code
Select All
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 

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger Fails During Intialization
Reply #2 - Jan 25th, 2018 at 12:17am
Print Post  
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
Newbies
*
Offline


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


Posts: 5
Joined: Oct 3rd, 2017
Re: Debugger Fails During Intialization
Reply #4 - Jan 27th, 2018 at 7:01pm
Print Post  
Tim:

I also have listed a number of error message I get after compiling in the attached file.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Caird
Newbies
*
Offline


Posts: 5
Joined: Oct 3rd, 2017
Re: Debugger Fails During Intialization
Reply #5 - Jan 28th, 2018 at 9:09pm
Print Post  
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
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Caird
Newbies
*
Offline


Posts: 5
Joined: Oct 3rd, 2017
Re: Debugger Fails During Intialization
Reply #6 - Jan 28th, 2018 at 9:10pm
Print Post  
Tim:

additional file
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger Fails During Intialization
Reply #7 - Feb 13th, 2018 at 8:53pm
Print Post  
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 TopicPrint