VS Arduino
>> >> Visual Micro VS2017 Error Message Debug Attach To Process
https://www.visualmicro.com/forums/YaBB.pl?num=1576757527

Message started by iKjetil on Dec 19th, 2019 at 12:12pm

Title: Visual Micro VS2017 Error Message Debug Attach To Process
Post by iKjetil on Dec 19th, 2019 at 12:12pm
The error message I get is:
---------------------------
Microsoft Visual Studio
---------------------------
Unable to start debugging. GDB exited unexpectedly with exit code 1 (0x1).

I have read on this forum that there was supposed to be a simpler gdb config scheme coming that would make these errors go away.

Any help solving this problem? Thanks.

iKjetil

Title: Re: Visual Micro VS2017 Error Message Debug Attach To Process
Post by Visual Micro on Dec 19th, 2019 at 1:11pm
Please follow the guide in the yellow box above

Title: Re: Visual Micro VS2017 Error Message Debug Attach To Process
Post by Simon Hopkinson on Dec 19th, 2019 at 1:26pm
Would you be able to send a screenshot of the error + IDE, and the logs from the Output Window > Micro Build and Debug ?

Just so we know what debugger / board configuration you are using, and the window output will contain further detail.  Most often this is a wiring or driver issue, but it depends on the debugger as to what drivers may be needed.

Title: Re: Visual Micro VS2017 Error Message Debug Attach To Process
Post by iKjetil on Dec 19th, 2019 at 1:36pm
I have followed the yellow box, so the information should be available soon.

iKjetil

Title: Re: Visual Micro VS2017 Error Message Debug Attach To Process
Post by Simon Hopkinson on Dec 19th, 2019 at 2:23pm
Thanks for the build information, and we can see it is a DUE Programming port with Atmel ICE Probe

When you attach the debugger you should see something like the below in the Output Window (select Debug from the list at the top of the output window):


Code (]Starting: "C:\ProgramData\vmicro\tools\openocd-0.10.0.1\bin/openocd.exe" -d2 -l "{C:\Users\Simon\AppData\Local\Temp\VMBuilds\SAM-DUE_ATMELICE_BLINK_GDB\arduino_due_x_dbg\Debug/SAM-DUE_ATMELICE_BLINK_GDB.ino_DebugOpenOCD.log}" -s "C:\ProgramData\vmicro\tools\openocd-0.10.0.1/share/openocd/scripts/" -c "interface cmsis-dap" -c "cmsis_dap_vid_pid 0x03eb 0x2141" -c "set CHIPNAME at91sam3X8E" -c "source [find target/at91sam3ax_8x.cfg):
" -c "init; reset halt"
Starting: "C:\Users\Simon\AppData\Local\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin\arm-none-eabi-gdb.exe" --interpreter=mi


One of the first parameters is the OpenOCD Log which will show if the debugger has been found (from above):
[code]C:\Users\Simon\AppData\Local\Temp\VMBuilds\SAM-DUE_ATMELICE_BLINK_GDB\arduino_due_x_dbg\Debug/SAM-DUE_ATMELICE_BLINK_GDB.ino_DebugOpenOCD.log[/code]

Would you be able to send this log file, and the Debug Output over after trying to attach the debugger as well?

Title: Re: Visual Micro VS2017 Error Message Debug Attach To Process
Post by iKjetil on Dec 19th, 2019 at 2:32pm
Se attached files for requested debug output window and ocd log. :)

iKjetil
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=ouput_debug.txt ( 0 KB | 1 Download )
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=ocd_log.txt ( 0 KB | 2 Downloads )

Title: Re: Visual Micro VS2017 Error Message Debug Attach To Process
Post by Simon Hopkinson on Dec 19th, 2019 at 2:54pm
The output in the log shows it can successfully see the ICE Debugger, but cant connect to the board. 

Can you confirm your wiring is as below (SAM port on ICE, and orientation of ribbon cable is important)


Title: Re: Visual Micro VS2017 Error Message Debug Attach To Process
Post by iKjetil on Dec 19th, 2019 at 3:12pm
My God! Was it that easy!

I had the cable from SAM port the wrong way but it gave me a green light. So I believed it was correct.

Thank you so much! :D :D

Best

iKjetil

Title: Re: Visual Micro VS2017 Error Message Debug Attach To Process
Post by Simon Hopkinson on Dec 19th, 2019 at 3:17pm
I have done that myself many times, so know the frustration.

Glad its all working now and hope the debugging helps now its running  :)

Updated SAM Debugging Doc: https://www.visualmicro.com/page/SAM-Debugging.aspx

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