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 JTAG debugging (Read 8813 times)
XKCD137
Newbies
*
Offline


Posts: 3
Joined: Mar 19th, 2015
JTAG debugging
Mar 19th, 2015 at 1:42pm
 
Is it possible to do standard, JTAG debugging (step-through code and view/change variables' data) while using the Visual Micro plugin with Atmel Studio?

I have an Atmel-ICE connected to my Arduino Mega 2560 via JTAG.  I can program the device using AtmelStudio using Tools->DeviceProgramming.  But when I try to start debugging, I receive an error that it can't find the target.  I notice that the options for Visual Micro "Programmers" contains "Atmel Studio ATMEL-ICE (ISP)", which indicates it will use the ISP interface (not JTAG), but I don't see any option for using JTAG.

So, is there any way to use JTAG, or is there some other way to do line-by-line code stepping with an Arduino project?

Thanks!
  
Back to top
 
IP Logged
 
XKCD137
Newbies
*
Offline


Posts: 3
Joined: Mar 19th, 2015
Re: JTAG debugging
Reply #1 - Mar 26th, 2015 at 7:00pm
 
I'm still hoping for an answer to this question.  Any insight would be appreciated.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: JTAG debugging
Reply #2 - Mar 27th, 2015 at 12:11pm
 
Sorry I missed this post and thanks for the prompt.

You can build using Visual Micro then click "File>Open object file for debugging"

This will drop you into a native atmel studio which will create a solution for you allowing you to set the device target and debug using atmel studio. It's a bit clunky to begin with but others report it working okay.

I think atmel are working on a better solution but no details yet
  
Back to top
IP Logged
 
XKCD137
Newbies
*
Offline


Posts: 3
Joined: Mar 19th, 2015
Re: JTAG debugging
Reply #3 - Mar 31st, 2015 at 12:35pm
 
Thanks for that advice.  Now I can step through the program.

I agree it's quite clunky to do a debug/modify/build cycle because I need two separate projects; one to build and one to debug the object.  Atmel Studio seems to get confused by changes to project files, so it's important to close one project before opening the other.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: JTAG debugging
Reply #4 - Mar 31st, 2015 at 12:45pm
 
Thanks for the update. Did you have the two projects open in two separate atmel studio instances or the same one?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: JTAG debugging
Reply #5 - Apr 5th, 2015 at 6:41pm
 
Discussion about atmel studio debugger created here:-
http://www.visualmicro.com/forums/YaBB.pl?num=1428257941/0#0
« Last Edit: Apr 5th, 2015 at 6:47pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint