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
Hot Topic (More than 8 Replies) EDBG debugging on Arduino Zero not working (Read 3535 times)
Paul86
Newbies
*
Offline


Posts: 8
Joined: Aug 17th, 2019
EDBG debugging on Arduino Zero not working
Aug 17th, 2019 at 8:57am
Print Post  
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.
  

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: EDBG debugging on Arduino Zero not working
Reply #1 - Aug 17th, 2019 at 4:00pm
Print Post  
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
Joined: Aug 17th, 2019
Re: EDBG debugging on Arduino Zero not working
Reply #2 - Aug 18th, 2019 at 5:55am
Print Post  
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
Joined: Aug 17th, 2019
Re: EDBG debugging on Arduino Zero not working
Reply #3 - Aug 18th, 2019 at 5:56am
Print Post  
Sorry, here is the attachment,
  

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: EDBG debugging on Arduino Zero not working
Reply #4 - Aug 19th, 2019 at 10:40am
Print Post  
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
Joined: Aug 17th, 2019
Re: EDBG debugging on Arduino Zero not working
Reply #5 - Aug 19th, 2019 at 2:08pm
Print Post  
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.
  

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: EDBG debugging on Arduino Zero not working
Reply #6 - Aug 19th, 2019 at 4:03pm
Print Post  
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
Joined: Aug 17th, 2019
Re: EDBG debugging on Arduino Zero not working
Reply #7 - Aug 19th, 2019 at 4:14pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: EDBG debugging on Arduino Zero not working
Reply #8 - Aug 19th, 2019 at 4:28pm
Print Post  
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
Joined: Aug 17th, 2019
Re: EDBG debugging on Arduino Zero not working
Reply #9 - Aug 20th, 2019 at 11:19am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: EDBG debugging on Arduino Zero not working
Reply #10 - Aug 20th, 2019 at 8:25pm
Print Post  
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
Joined: Aug 17th, 2019
Re: EDBG debugging on Arduino Zero not working
Reply #11 - Aug 23rd, 2019 at 5:25am
Print Post  
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
Joined: Aug 17th, 2019
Re: EDBG debugging on Arduino Zero not working (SOLVED)
Reply #12 - Aug 23rd, 2019 at 6:29am
Print Post  
Hi Tim,

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

Thanks again.

Paul.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: EDBG debugging on Arduino Zero not working
Reply #13 - Aug 23rd, 2019 at 12:28pm
Print Post  
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 TopicPrint