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 AVR Dragon and Visual Micro (Read 5659 times)
hape
Newbies
*
Offline


Posts: 3
Joined: Jun 6th, 2014
AVR Dragon and Visual Micro
Jun 6th, 2014 at 5:44pm
Print Post  
hi
is there a possibility to get in debugging thru the debug wire? If i start and enable the DWEN Fuse i cant upload via debug wire and AVR Dragon. Is there any workaround that AS6 (Visual Micro) uploads via AVR Dragon and Debug Wire and i can get in debugging?
thx for help
hape
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVR Dragon and Visual Micro
Reply #1 - Jun 6th, 2014 at 6:20pm
Print Post  
Hi Hape,

Yes there are lots of articles on the web for advanced users to enable atmel hardware debug

You will also need a cap on the reset line which means you must manually push reset to upload using usb

You can also use "file>open object file for debugging" to debug an existing compiled arduino program

You have some research to do and it's the reason that we have the simpler serial debug. Not always enough for some but ok for most  Smiley
  
Back to top
IP Logged
 
hape
Newbies
*
Offline


Posts: 3
Joined: Jun 6th, 2014
Re: AVR Dragon and Visual Micro
Reply #2 - Jun 6th, 2014 at 7:05pm
Print Post  
hi
i understood. With the reset button thats clear. 
What you wrote that there is a lot of articles to enable atmel hardware debug - i searched a long time before i wrote this. The problem is the upload. If i press Alt+F5 Visual Micro starts with uploading either via Programmer (there is no programmer AVR Dragon) or via USB (which is not connected because only the AVR Dragon is connected). So my question i did not found in the web. 
Because my english isn't very well excuse me if i did not understood everything correct and ask again.
thx for your help
hape
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVR Dragon and Visual Micro
Reply #3 - Jun 6th, 2014 at 9:11pm
Print Post  
Okay thanks for explaining.

The atmel debugger does not understand an .ino project but we hope there will be a release of visual micro over the next month or two that allows for a ".cpp only" arduino project.

When we compile for arduino we copy all of the .ino source code into a temporary [sketch].cpp source file. It is the .cpp that is compiled into a .elf file.

Switch on "tools>options>visual micro>compiler>show build folder" then press F7 or build your arduino project.

After the build the output window will show the name of the temporary build folder.

Atmel studio can debug the .elf file that will exist in the temporary build folder.

Use "File>Open object file for debugging", this is an Atmel Studio feature. It allows you to open the .elf in the build folder described above.

When you open a .elf for debugging a file mapping window will open. The window is more intelligent than it appears to be. Paste folder names to the right side of the mapping window and it will auto complete the file names for you.

After opening the elf for debugging, atmel studio will create a new read-only solution containing the code of the .elf. Save the solution so it can be re-used after making code changes and building your arduino project.

This solution is "clunky" I know. I hope that Visual Micro is able to provide a more seemless solution in the not to distant future  Smiley
« Last Edit: Jun 6th, 2014 at 9:11pm by Tim@Visual Micro »  
Back to top
IP Logged
 
hape
Newbies
*
Offline


Posts: 3
Joined: Jun 6th, 2014
Re: AVR Dragon and Visual Micro
Reply #4 - Jun 7th, 2014 at 10:04am
Print Post  
hi
thats an excellent explanation what to do and whats going on. Because i'm a beginner not every thing with VisualMicro - AS6 - AVR Dragon seems to be clear for me. Now the things i want to do are working very well. I didn't think its too cumbersome - just few clicks and you are there where you want to be. 
So thx very much for your nice and beginner friendly answers.
hape
Cool Cheesy Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint