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
Hot Topic (More than 8 Replies) Want to Debug Arduino (Read 7368 times)
Mac
Newbies
*
Offline


Posts: 5
Location: Anoka, MN, USA
Joined: Nov 13th, 2015
Want to Debug Arduino
Nov 13th, 2015 at 10:53pm
Print Post  
I have been using Adruino IDE to write code for Uno and Mega, for a few months and wanted to be able to work with a debugger. I had loaded Arduino 1.6. Now I loaded Atmel Studio 7.1 and Visual Micro, in that order. I can’t get the Upload Code or the Debugger (except Simulator) to work. At this point I am open to starting over. If I did not install the correct tools please advise what tools to install, and where to get them.
Thanks!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Want to Debug Arduino
Reply #1 - Nov 13th, 2015 at 11:39pm
Print Post  
Hello,

Can you please provide a link to Atmel Studio 7.1

Please also tell me what you click and from where to download Visual Micro

Thanks
  
Back to top
IP Logged
 
Mac
Newbies
*
Offline


Posts: 5
Location: Anoka, MN, USA
Joined: Nov 13th, 2015
Re: Want to Debug Arduino
Reply #2 - Nov 14th, 2015 at 4:35am
Print Post  
  
Back to top
 
IP Logged
 
Mac
Newbies
*
Offline


Posts: 5
Location: Anoka, MN, USA
Joined: Nov 13th, 2015
Re: Want to Debug Arduino
Reply #3 - Nov 14th, 2015 at 4:44am
Print Post  
The 232 should be added to the link, but the editor will not include it. https://visualstudiogallery.msdn.microsoft.com/0cb4039b-4173-40cb-86ff-96522bee0...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Want to Debug Arduino
Reply #4 - Nov 14th, 2015 at 3:20pm
Print Post  
Thanks for the link. That's AtmelStudio 7.0 not 7.1, you had me worried Smiley

1.
Can you confirm if you have followed the first steps in the documentation or if not how you created or opened an arduino project?

2.
Confirm if you have the "Visual Micro" menu at the top of the Ide?

3.
A screen shot of the ide with a project open would be useful

Thanks
  
Back to top
IP Logged
 
Mac
Newbies
*
Offline


Posts: 5
Location: Anoka, MN, USA
Joined: Nov 13th, 2015
Re: Want to Debug Arduino
Reply #5 - Nov 16th, 2015 at 5:29pm
Print Post  
1: Yes I got past the first couple steps of "First Steps".
2: Yes there is a "Visual Micro" menu. (see screen shot).
3: I included a couple screen shots that may be helpful.
I created the project from a Sketch made with the Arduino IDE.
I also created and uploaded (to Mega 2560 board) another Sketch with the Arduino IDE. One that has "Serial.Print" functions in it. After opening the "Serial Monitor" under "Visual Micro" toolbar in "Atmel Studio" and running the code. The proper messages were display on the serial monitor. But the "Micro Project" toolbar is always "Grayed Out" and under the "Debug" the only option is "Simulate".
Sorry about the 7.1 thing, I need to proof-read. 
Thanks for you assistance, I appreciate it very much!
  

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Want to Debug Arduino
Reply #6 - Nov 16th, 2015 at 5:37pm
Print Post  
Hi,

Please follow the first steps guide in our documentation

http://www.visualmicro.com/page/User-Guide.aspx?doc=index

The "Create project from sketch" feature is an atmel studio feature that converts sketch projects to native c++ gcc. This is not a feature of Visual Micro and does not create or open a standard Arduino sketch which is why the options are disabled.

Thanks
« Last Edit: Nov 16th, 2015 at 5:38pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Mac
Newbies
*
Offline


Posts: 5
Location: Anoka, MN, USA
Joined: Nov 13th, 2015
Re: Want to Debug Arduino
Reply #7 - Nov 17th, 2015 at 6:56pm
Print Post  
Thanks! All is well. I was a little confused about setting and clearing breakpoints until I realized I needed to re-compile to make a change.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Want to Debug Arduino
Reply #8 - Nov 17th, 2015 at 7:38pm
Print Post  
Oh I see. Thanks very much for the update.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint