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 Arduino Debug with Atmel Ice Visual Micro & VS (Read 1334 times)
Greybeard
Junior Member
**
Offline


Posts: 24
Joined: Jul 22nd, 2020
Arduino Debug with Atmel Ice Visual Micro & VS
Jul 22nd, 2020 at 2:19pm
Print Post  
I am trying to use ATMEL ICE as a hardware debugger under VS2017.   Attached  are screen shots of the vMicro->Debugger, vMicro->Debugger, the Main toolbar and the error message I get when I click Debug->Start Debugging.  The compiler output is also attached.


I am testing with the basic digital example "BlinkyWithoutDelay.ino" as imported using vMicro explorer.   

I know the code downloads the target Arduino Due board because I can change the delay time and observe the change on the board. 

The problem is I can't start the debugger.  I get the same error when I use Debug->Attach To Process.

Suggestions??
  

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


Posts: 2142
Joined: Feb 13th, 2019
Re: Arduino Debug with Atmel Ice Visual Micro & VS
Reply #1 - Jul 22nd, 2020 at 2:29pm
Print Post  
It may be worth following the Hardware Debugging Troubleshooter through, as this will direct you to the next layer of logs in the build folder, and other potential issues.  There is also a video to accompany this troubleshooter to assist.

If you can ensure the Upload > Verbose is enabled, and send over the below it will help us identify the problem more easily:
1) Output from the Output > Micro Build window
2) Output from the Output > Debug 
3) The OpenOCD Log from the build folder

  
Back to top
 
IP Logged
 
Greybeard
Junior Member
**
Offline


Posts: 24
Joined: Jul 22nd, 2020
Re: Arduino Debug with Atmel Ice Visual Micro & VS
Reply #2 - Jul 22nd, 2020 at 4:07pm
Print Post  
I didn't know there was a log Shocked

The log, as you will see, says it can't connect to a port.  Don't know how to change that or even if it can be changed.
  

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


Posts: 2142
Joined: Feb 13th, 2019
Re: Arduino Debug with Atmel Ice Visual Micro & VS
Reply #3 - Jul 22nd, 2020 at 5:13pm
Print Post  
Brilliant thanks.

The error about the port means something else is already bound to the port on your machine, most likely an orphaned copy of OpenOCD.exe (or anything else bound to port 6666).

If you kill that off in task manager, and try re-attaching the debugger it should work....

If you need the port to be changed (as use 6666 for something else) we can check the options available for that.
  
Back to top
 
IP Logged
 
Greybeard
Junior Member
**
Offline


Posts: 24
Joined: Jul 22nd, 2020
Re: Arduino Debug with Atmel Ice Visual Micro & VS
Reply #4 - Jul 22nd, 2020 at 6:56pm
Print Post  
Found the errant user of 6666 and eradicated it. 

I notice differences between the serial debugger and hardware debugger when using conditionals & actions.  Any docs for setting up breakpoints??
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2142
Joined: Feb 13th, 2019
Re: Arduino Debug with Atmel Ice Visual Micro & VS
Reply #5 - Jul 23rd, 2020 at 9:18am
Print Post  
There are a number of documents reachable from the index, under the Serial Debugging section, and further information in the following GDB Debugging section:-
Documentation Index

There are also a couple of videos which are useful here:
Serial Debugging: Conditional Debugging for Arduino Projects
GDB: Fix Common GDB Slowdown Problem On Arduino
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint