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
Locked Topic Atmel ICE debugging in new VM version- how-to ? (Read 8945 times)
Michal.Z
Newbies
*
Offline


Posts: 3
Joined: Sep 6th, 2016
Atmel ICE debugging in new VM version- how-to ?
Sep 6th, 2016 at 10:51am
 
Hi,
change log for recent update claims
"Debug in Atmel Studio using JTAG, Segger, ICE. All Atmel debuggers and the avr simulator are supported" 

Could you please explain how to use atmel ICE JTAG for debugging ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE debugging in new VM version- how-to ?
Reply #1 - Sep 6th, 2016 at 12:09pm
 
Hi,

Switch on vMicro>Debugger>Atmel Studio Debugger

When you have an Arduino project open click any of the usual Atmel Studio Debug>Start commands. 

Visual Micro should perform normal compile and upload then launch the atmel debugger associated to the project.

After you have debugged a project once the Atmel "Debug>Attach to target" option should also work which allows debug to start without need to compile>upload.

Make sense?

tip:

Using .ino files in your project can be confusing with the atmel debugger because the project code is compiled in a temp folder. When using .ino files and the atmel debugger you will see instructions in the build output of how to convert to using .cpp instead of .ino

Support for project_name.cpp instead of .ino files is also new in visual micro and enables the build to be performed directly over the project sources instead of in temp folder. The onscreen instruction explains how to convert from .ino to .cpp (it's simple)

Let me know how you get on or ask if something isn't clear
  
Back to top
WWW  
IP Logged
 
Michal.Z
Newbies
*
Offline


Posts: 3
Joined: Sep 6th, 2016
Re: Atmel ICE debugging in new VM version- how-to ?
Reply #2 - Sep 6th, 2016 at 1:24pm
 
Tim@Visual Micro wrote on Sep 6th, 2016 at 12:09pm:
Hi,

Switch on vMicro>Debugger>Atmel Studio Debugger

When you have an Arduino project open click any of the usual Atmel Studio Debug>Start commands. 

Visual Micro should perform normal compile and upload then launch the atmel debugger associated to the project.

After you have debugged a project once the Atmel "Debug>Attach to target" option should also work which allows debug to start without need to compile>upload.

Make sense?

tip:

Using .ino files in your project can be confusing with the atmel debugger because the project code is compiled in a temp folder. When using .ino files and the atmel debugger you will see instructions in the build output of how to convert to using .cpp instead of .ino

Support for project_name.cpp instead of .ino files is also new in visual micro and enables the build to be performed directly over the project sources instead of in temp folder. The onscreen instruction explains how to convert from .ino to .cpp (it's simple)

Let me know how you get on or ask if something isn't clear


OK, next problem
After uploading, debugging session starts up BUT when I want to pause the program it lands in some disassembly not on code line.
When using "start debugging and break" it breaks - uC hangs and nothing can be done. 

Thanks for help
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE debugging in new VM version- how-to ?
Reply #3 - Sep 6th, 2016 at 1:58pm
 
Hi,

1) You haven't said if you followed instruction to use cpp file

2) Try click "vMicro>Toggle Hidden Files" to that underlying Arduino code is in the solution.

Currently tested with JTAG and Arduino Due. Which hardware are you using?
  
Back to top
WWW  
IP Logged
 
Michal.Z
Newbies
*
Offline


Posts: 3
Joined: Sep 6th, 2016
Re: Atmel ICE debugging in new VM version- how-to ?
Reply #4 - Sep 7th, 2016 at 11:36am
 
ok now it works just fine Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE debugging in new VM version- how-to ?
Reply #5 - Sep 7th, 2016 at 12:37pm
 
Excellent thanks for the update and testing Smiley 

As you know it's new so will try to update the docs for others
« Last Edit: Sep 7th, 2016 at 12:38pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
testato
Junior Member
**
Offline


Posts: 48
Joined: Feb 11th, 2014
Re: Atmel ICE debugging in new VM version- how-to ?
Reply #6 - Oct 8th, 2016 at 4:26pm
 
this is a very important update,
so it work also on an Uno by debugWire and on a Micro by Jtag ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE debugging in new VM version- how-to ?
Reply #7 - Oct 8th, 2016 at 4:44pm
 
Hi,

If you switch on Atmel Debugging and use .cpp instead of .ino (follow the rules) then Visual Micro will build and then launch whatever debug device is configured for the Atmel project

Please see this page for more info http://www.visualmicro.com/page/Arduino-for-Atmel-Studio-7.aspx



  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE debugging in new VM version- how-to ?
Reply #8 - Dec 18th, 2016 at 12:56am
 
Off-Topic replies have been moved to this Topic.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint