Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
EDBG debugging on Arduino Zero not working (Read 404 times)
Paul86
Newbies
*
Offline



Posts: 8
EDBG debugging on Arduino Zero not working
Aug 17th, 2019 at 9:57am
 
Hi, I can't get the EDBG hardware debugger to work with my Genuino Zero. All appears to load OK, but it doesn't stop at any breakpoints, and there are no extra Debug windows available.
Back to top
 

Zero_Build_Log.txt (35 KB | 7 )
 
IP Logged
 
Visual Micro
Administrator
*****
Online



Posts: 10529
United Kingdom
Re: EDBG debugging on Arduino Zero not working
Reply #1 - Aug 17th, 2019 at 5:00pm
 
When you say it doesn't stop at breakpoints do you mean you just see your breakpoints messages without stopping or that the debug has not started?

What are you clicking to start debug?
Back to top
 
WWW  
IP Logged
 
Paul86
Newbies
*
Offline



Posts: 8
Re: EDBG debugging on Arduino Zero not working
Reply #2 - Aug 18th, 2019 at 6:55am
 
Hi Tim, thanks for the reply.

Sorry, actually I hadn't started debugging, but when I do I get the 'Unable to start program' message in the attached screenshot.

Also in the attachment is a screenshot of my Configuration Settings.

Hope you can help.

Many thanks.
Back to top
 
 
IP Logged
 
Paul86
Newbies
*
Offline



Posts: 8
Re: EDBG debugging on Arduino Zero not working
Reply #3 - Aug 18th, 2019 at 6:56am
 
Sorry, here is the attachment,
Back to top
 

Screenshots_001.docx (66 KB | 11 )
 
IP Logged
 
Visual Micro
Administrator
*****
Online



Posts: 10529
United Kingdom
Re: EDBG debugging on Arduino Zero not working
Reply #4 - Aug 19th, 2019 at 11:40am
 
Please try in a new test project. Please don;t use the debug configuration dialog. Only use the vMicro menu or bars to set your debug options.

Before you click F5 add a breakpoint to the loop.
Back to top
 
WWW  
IP Logged
 
Paul86
Newbies
*
Offline



Posts: 8
Re: EDBG debugging on Arduino Zero not working
Reply #5 - Aug 19th, 2019 at 3:08pm
 
Thanks Tim,

I have done as you suggest, and when I start debugging I get the 'Unable to start debugging' message as in the attached Screenshots, which also contains a shot of the Visual Micro window. Also attached is the verbose build log.

Regards,

Paul.
Back to top
 

EDBG.txt (81 KB | 6 )
Screenshots2.docx (224 KB | 4 )
 
IP Logged
 
Visual Micro
Administrator
*****
Online



Posts: 10529
United Kingdom
Re: EDBG debugging on Arduino Zero not working
Reply #6 - Aug 19th, 2019 at 5:03pm
 
1)
Switch off the programmer you don't need "Atmel EDBG" just select your COM port and upload.

2)
Also try this in a new project and solution.

3)
Have you ever used your zero in atmel studio with atmel debugging? (just a question not a suggestion)

Thanks

Back to top
 
WWW  
IP Logged
 
Paul86
Newbies
*
Offline



Posts: 8
Re: EDBG debugging on Arduino Zero not working
Reply #7 - Aug 19th, 2019 at 5:14pm
 
Hi Tim,

I have done as you suggested, but with the same result.

I haven't used it atmel studio.

Thanks,

Paul.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Online



Posts: 10529
United Kingdom
Re: EDBG debugging on Arduino Zero not working
Reply #8 - Aug 19th, 2019 at 5:28pm
 
1)
Please ensure vmicro>compiler>verbose is enabled and click "Debug>Attach To Process"

After this fails to start the debugger you will have a number of output windows displayed in the drop down list above the output window. Please give the contents of the Visual Studio "Debugger" output window and also the Visual Micro "Micro Build" output window.

2)
Please confirm the name, date and time of the usb drivers displayed for the zero in control panel > device manager
Back to top
 
WWW  
IP Logged
 
Paul86
Newbies
*
Offline



Posts: 8
Re: EDBG debugging on Arduino Zero not working
Reply #9 - Aug 20th, 2019 at 12:19pm
 
Hi Tim,

1) What debug option (Off/Serial/Hardware) should I use when uploading the process to attach to?

2) The driver name and date is EDBG CMSIS-DAP (COM4) 08/07/2019.

The driver file is C:\Windows\System32\drivers\usbser.sys 15/09/2018 08:28

Cheers,

Paul.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Online



Posts: 10529
United Kingdom
Re: EDBG debugging on Arduino Zero not working
Reply #10 - Aug 20th, 2019 at 9:25pm
 
If you want to debug then set Hardware Debug > Built In

That should work out of the box unless the board has a problem.
Back to top
 
WWW  
IP Logged
 
Paul86
Newbies
*
Offline



Posts: 8
Re: EDBG debugging on Arduino Zero not working
Reply #11 - Aug 23rd, 2019 at 6:25am
 
Hi Tim,

I think the problem probably is with the board. It has been 'bricked' in the past, although it's running OK now except for the debugging.

Thanks for your help.
Back to top
 
 
IP Logged
 
Paul86
Newbies
*
Offline



Posts: 8
Re: EDBG debugging on Arduino Zero not working (SOLVED)
Reply #12 - Aug 23rd, 2019 at 7:29am
 
Hi Tim,

Installed Visual Studio 2019 today, and now it's all working fine!

Thanks again.

Paul.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Online



Posts: 10529
United Kingdom
Re: EDBG debugging on Arduino Zero not working
Reply #13 - Aug 23rd, 2019 at 1:28pm
 
Great. I nearly suggested doing a repair on your previous IDE but that's great thanks for the update.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print