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 avrdragon for debugging (Read 3937 times)
eggplantUK
Newbies
*
Offline


Posts: 6
Joined: Nov 8th, 2014
avrdragon for debugging
Nov 8th, 2014 at 3:00pm
Print Post  
Hi all,
I have just installed Atmel Studio6 and Visual micro V1.1407.10. After messing about for hours with the ridiculous Jungo drivers in order to be able to use the Avrdragon with other applications than Atmel studio, everything is pretty much working, but whilst I will have a look at the debugger that comes with VM, as I have a dragon I would like to use that to debug too (also not all my projects are on arduino boards and don't all have a serial connection to my pc)
Is there a way to disable the software debugger and use the dragon? 
Also, I much prefer using Visual studio (2008) in many ways, but I believe that there is no way at all to use the dragon with visual studio ?

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: avrdragon for debugging
Reply #1 - Nov 8th, 2014 at 3:06pm
Print Post  
Hi,

You can untick "tools>visual micro>automatic debugging" to quickly disable the debugger.

You can't easily use the dragon with a pure arduino project. We are working on a simpler solution that allows you to make native atmel gcc application projects that can use arduino code but it's not hard for you to discover on the internet how to setup a gcc project to compile and use the dragon.

If you use a gcc project without .ino files then your life will be easier.

Otherwise, in an arduino project you should compile then click "file>open object file for debugging"

The visual micro debugger is usb serial and nothing to do with hardware debug

Thanks
« Last Edit: Nov 8th, 2014 at 3:07pm by Tim@Visual Micro »  
Back to top
IP Logged
 
eggplantUK
Newbies
*
Offline


Posts: 6
Joined: Nov 8th, 2014
Re: avrdragon for debugging
Reply #2 - Nov 8th, 2014 at 3:42pm
Print Post  
Hi,

Many thanks. Im still in the process of leaving the arduino IDE, whilst I like Atmels software in some ways, I much prefer Visual Studio which I have used for other work for some time. It seems like I may end up using a combination of the two. That said, I haven't yet played with the VM debugger.

Thanks
« Last Edit: Nov 8th, 2014 at 3:42pm by eggplantUK »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: avrdragon for debugging
Reply #3 - Nov 8th, 2014 at 10:00pm
Print Post  
Ok,

The vm debugger is a lot better than Serial.print() but can't step from line to line like a hardware debugger. It can only step from breakpoint to breakpoint.

Keep an eye out for upgrades to the Visual Micro debugger over the next couple of months. It's going to get a lot better from the point of view of getting watch expressions/registers dynamically (as opposed to declaring pre-upload and might have a stack trace.

Good luck with whatever route you go Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint