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 Debugging Arduino sketch AVR Dragon (Read 4185 times)
Dave Telling
Newbies
*
Offline


Posts: 8
Joined: Mar 18th, 2015
Debugging Arduino sketch AVR Dragon
Mar 19th, 2015 at 5:22pm
Print Post  
I finally got Atmel Studio 6 and the Arduino Visual Studio to coexist, and I can load and compile a sketch. However, even thought I have specified my AVR Dragon and debugwire as the debug device (and I have enabled debugwire from the tools\device programming window), whenever I try to debug, Studio 6 shows compiling the sketch, but then keeps trying to upload via the serial port. When this occurs, it takes minutes before the system returns an error and I am able to do anything further. I have rebooted, restarted, done everything I can think of, but it always tries to use the com port, rather then the debugwire interface. I'm stumped! I have selected the proper device (ATmega328) the clock speed is set low (250 KHz) so I should be able to connect via debugwire.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging Arduino sketch AVR Dragon
Reply #1 - Mar 19th, 2015 at 6:55pm
Print Post  
Hi,

Visual micro supports arduino compat dev in Atmel studio. So default upload is standard arduino and supported arduino programmers

The Atmel project and device properties are not arduino compatible directly

The visual micro debugger is a software usb debugger that is a replacement for serial print statements

With the free version of Visual Micro you can do is click build. Then click File>Open Object File For Debugging

Then Atmel will create a new solution that allows you to use native upload features to debug your compiled sketch
« Last Edit: Sep 9th, 2015 at 8:22pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging Arduino sketch AVR Dragon
Reply #2 - Mar 19th, 2015 at 6:57pm
Print Post  
++ you are a bit caught in the middle. 

Trying to use the dragon is advanced user stuff which is not really what Visual Micro or Arduino is about. However you might find some posts on the forum from other users that use the dragon based on what I have said below.

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint