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 Compilation/uploading problems (Read 5221 times)
Kmc
Newbies
*
Offline


Posts: 4
Joined: Dec 5th, 2014
Compilation/uploading problems
Dec 5th, 2014 at 3:35pm
Print Post  
Hey!

As stated in the title I'm having trouble uploading sketches to my Arduino Uno.
It shows "Unable to start program '<path>\program.exe'" after the compilation

Other solutions to this problem didn't seem to work for me.

I'm using VS 2013 Professional with Visual Assist & Microsoft Productivity Power Tools.

It also appears to me that VM doesn't get to compile the sketches - VS has to be the one doing it.
The output I get looks like every other one I get when compiling c++ programs, not like the one
that's been posted in this tutorial: http://www.visualmicro.com/page/User-Guide.aspx?doc=Upload-and-Run.html
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation/uploading problems
Reply #1 - Dec 5th, 2014 at 4:22pm
Print Post  
Hi,

If Visual Micro believes the sketch is valid it will override the VS compile which you correctly state is not happening.

So let's look at a few basics first

1)
Arduino does not have a "project" therefore it uses a special name convention to ensure a valid sketch. The folder that contains the sketch and the master sketch.ino must have the same name

This means that in a mySketch folder we would expect to find mySketch.ino

2)
In Visual or Atmel Studio Visual Micro also expects the project to have the same name as the sketch. In Visual Studio the project file name .vxproj and the project name in the solution explorer can be different but Visual Micro expects them to be the name

This means that in a mySketch folder we would expect to find mySketch.ino and mySketch.vcxproj

3)
Having the correct name should allow Visual Micro to control the sketch intellisense and build. The only other thing that might prevent that is if the Arduino location(s) you specified when setting up Visual Micro is wrong.

To prove the location is correct you should see a list of boards on the tool bar and also on the "tools>visual micro" menu

4)
If you do not see a boards list of a "tools>visual micro" at all then visual micro is not installed correctly in your Ide. In that case confirm if you have a Visual Micro entry in "tools>addin manager", if not then let me know

Thanks


  
Back to top
IP Logged
 
Kmc
Newbies
*
Offline


Posts: 4
Joined: Dec 5th, 2014
Re: Compilation/uploading problems
Reply #2 - Dec 5th, 2014 at 4:32pm
Print Post  
Tim@Visual Micro wrote on Dec 5th, 2014 at 4:22pm:
Hi,


Thank you for the quick answer!
I looked through all of it and everything is like it is supposed to be:


« Last Edit: Dec 5th, 2014 at 4:34pm by Kmc »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation/uploading problems
Reply #3 - Dec 5th, 2014 at 4:48pm
Print Post  
Thanks for the info, yes it looks okay so this is an unusual exception being thrown causing visual micro to hand back to VS

Test...

Can you please close your sketch and solution then click "file>new>sketch project". Give the new sketch a name of testSketch (or something simple). 

Then click compile, does it build okay?
« Last Edit: Dec 5th, 2014 at 4:49pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Kmc
Newbies
*
Offline


Posts: 4
Joined: Dec 5th, 2014
Re: Compilation/uploading problems
Reply #4 - Dec 5th, 2014 at 5:16pm
Print Post  
It works now!

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation/uploading problems
Reply #5 - Dec 5th, 2014 at 5:27pm
Print Post  
Maybe the first project you tried you didn't use the "File>Open>Sketch project" or "File>New>sketch project" option which creates a certain type of C++ project? 

This means that you created the initial project manually? If so what options did you pick for your new c++ project and I will try to see if we can support that project type in the future. No doubt others will do the same.
  
Back to top
IP Logged
 
Kmc
Newbies
*
Offline


Posts: 4
Joined: Dec 5th, 2014
Re: Compilation/uploading problems
Reply #6 - Dec 5th, 2014 at 6:04pm
Print Post  
I honestly am not sure anymore, but I think it was like this:
I simply had an .ino file which I sent home from school through E-Mail.
I think I opened the file with the Arduino program first, which then asked me if I wanted to create a project folder.

It created the project folder on my Desktop, which is where my .ino was located.
[This is the part where I don't know what I did]I later opened the .ino file with VS & VM.. I think. 
It must've then created the Solution, etc. on its own or after asking or so.


Though my whole project (also the VS files) was in the folder on my Desktop.
It might've been that.

Edit: I also had that project linked to a Git repository, though I couldn't think of why that might cause trouble.

I'm going to play around a bit and try to find out what the cause of all this was.
« Last Edit: Dec 5th, 2014 at 6:08pm by Kmc »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation/uploading problems
Reply #7 - Dec 5th, 2014 at 6:09pm
Print Post  
Great thanks for the info and that sounds okay apart from the desktop bit Smiley

Probably desktop was a problem but good to hear it is okay now.

Thanks very much for all the info
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint