VS Arduino
Visual Micro >> Hardware Debugging (GDB, GDB WiFi, GDB Stub) >> Debugger Fails During Intialization
https://www.visualmicro.com/forums/YaBB.pl?num=1507067355

Message started by Caird on Oct 3rd, 2017 at 9:49pm

Title: Debugger Fails During Intialization
Post by Caird on Oct 3rd, 2017 at 9: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.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Visual_Micro_Debugger_Error.docx ( 23 KB | 4 Downloads )

Title: Re: Debugger Fails During Intialization
Post by anatom74 on Oct 7th, 2017 at 5: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[/code]

Title: Re: Debugger Fails During Intialization
Post by Visual Micro on 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


Title: Re: Debugger Fails During Intialization
Post by Caird on Jan 27th, 2018 at 2:19am
Log files were uploaded via info@visualmicro.com

Title: Re: Debugger Fails During Intialization
Post by Caird on Jan 27th, 2018 at 7:01pm
Tim:

I also have listed a number of error message I get after compiling in the attached file.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Visual_Micro_Error_Messages.pdf ( 172 KB | 7 Downloads )

Title: Re: Debugger Fails During Intialization
Post by Caird on 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
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Visual_Micro_Logs.zip ( 2 KB | 2 Downloads )
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Visual_Micro_Error_Messages_001.pdf ( 150 KB | 8 Downloads )

Title: Re: Debugger Fails During Intialization
Post by Caird on Jan 28th, 2018 at 9:10pm
Tim:

additional file

https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Visual_Studio_Output_Window.pdf ( 193 KB | 4 Downloads )

Title: Re: Debugger Fails During Intialization
Post by Visual Micro on 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?


VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.