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] 2  Send TopicPrint
Hot Topic (More than 8 Replies) Cannot Upload to (Read 21247 times)
EricL
Junior Member
**
Offline


Posts: 11
Location: Atlanta, GA
Joined: Oct 1st, 2012
Cannot Upload to
Oct 1st, 2012 at 11:45pm
Print Post  
Hello 

I am using VS2010 Pro with SP1. I can compile projects put when I hit F5 (Start Debugging) I get an error message immediately.

"Unable to start Program"
pleServer.exe "

"The system cannot find the file specified."

Any ideas? 

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot Upload to
Reply #1 - Oct 2nd, 2012 at 12:56am
Print Post  
I am not sure what or how it's trying to anything with a LinkSprite exe example.

Have you got more than one project in your solution?
  
Back to top
IP Logged
 
EricL
Junior Member
**
Offline


Posts: 11
Location: Atlanta, GA
Joined: Oct 1st, 2012
Re: Cannot Upload to
Reply #2 - Oct 2nd, 2012 at 1:25am
Print Post  
It works with the Arduino compiler. I have tested other projects like Blink and I get the same results with VC 2010
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot Upload to
Reply #3 - Oct 2nd, 2012 at 12:33pm
Print Post  
I was being a bit thick yesterday. I guess your sketch is called pleServer?

What is happening is that vm is hitting an error of some sorts which is causing visual studio to attempt a normal C++ compile of your project which would produce pleServer.exe

I might have to add some trace for this because the F5 does normal compile, which you say works, then uses the serial port to upload using the arduino arvdude.exe. So there isn't very much to go wrong.

I am assuming you have set the correct serial port but even that being wrong would not cause this error.

Have you altered any other settings? Can you email me your project or tell me where to download it please.

In the meantime if you want to get going then open arduino ide and click "External Editor" in the preferences. This will allow you to have the sketch open in both VS and arduino. To edit in VS and to upload using arduino. With external editor enabled you will see that arduino auto detects any changes made in vs prior to upload.

Look forward to receiving more information

Thanks
  
Back to top
IP Logged
 
EricL
Junior Member
**
Offline


Posts: 11
Location: Atlanta, GA
Joined: Oct 1st, 2012
Re: Cannot Upload to
Reply #4 - Oct 2nd, 2012 at 12:38pm
Print Post  
Is there any additional information I can provide you at this point? 

  
Back to top
 
IP Logged
 
EricL
Junior Member
**
Offline


Posts: 11
Location: Atlanta, GA
Joined: Oct 1st, 2012
Re: Cannot Upload to
Reply #5 - Oct 2nd, 2012 at 12:44pm
Print Post  
I am using DiamondBack, which is an Arduino Duemilanove compatible clone that has 802.11b wireless connectivity baked directly onto the board. I do have the serial port set correctly..

The code I am using is from: https://github.com/linksprite/ZG2100BasedWiFiShield

However, I think my problem is more basic since the problem also occurs with Blink. I dont think I altered any settings..

What is weird is the the code compiles but the EXE doesnt get created.

I appreciate your help with this.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot Upload to
Reply #6 - Oct 2nd, 2012 at 12:54pm
Print Post  
Hi, yes arduino does not have such a think as an exe, you are only seeing the message about the exe because visual micro is not happy and therefore is not handling the upload.

What happens if you click "Start>Without debugging"? This should do the same as F5 seeing that Arduino does not have the concept of debug.

Can you check your arduino exe path is correct.

Can you switch on verbose under tools>options>visual micro>compiler. Lets' see what that shows up.

After you get the error you might be able to click back to the output window to see better error info?

Can you email a screen shot of your vs pen with blink showing the error to info [at] visualmicro.com

Please also confirm the error you get when attempting to upload blink.

Thanks

« Last Edit: Oct 2nd, 2012 at 12:54pm by Tim@Visual Micro »  
Back to top
IP Logged
 
EricL
Junior Member
**
Offline


Posts: 11
Location: Atlanta, GA
Joined: Oct 1st, 2012
Re: Cannot Upload to
Reply #7 - Oct 2nd, 2012 at 1:11pm
Print Post  
Start>without debugging yields same error.
Arduino path is correct.
No change when I switch to verbose.

Here is what is did find...I made a deliberate coding error and it still compiles...Here is what i did and the output:

void setup() {
  // put your setup code here, to run once:
kjhkh     //<- code error
}

void loop() {
  // put your main code here, to run repeatedly: 
   
}

Output:

1>------ Rebuild All started: Project: BareMinimum, Configuration: Debug Win32 ------
1>Build started 10/2/2012 9:08:06 AM.
1>_PrepareForClean:
1>  Deleting file "Debug\BareMinimum.lastbuildstate".
1>InitializeBuildStatus:
1>  Creating "Debug\BareMinimum.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>FinalizeBuildStatus:
1>  Deleting file "Debug\BareMinimum.unsuccessfulbuild".
1>  Touching "Debug\BareMinimum.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.06
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot Upload to
Reply #8 - Oct 2nd, 2012 at 1:32pm
Print Post  
Ahaha, now I see the problem. The plugin is not installed properly. 

When you see the build succeeded you are seeing the visual studio c++ build and not the arduino build. 

The reason for switching on verbose was to see what the plugin was doing during compliation not to fix anything directly. With verbose, you would see a very different output if the plugin was handling the compilation. In fact, without verbose it would show the same compiler output as the arduino ide.

So we just need to look at why the plugin is not working...

I need to ask you some questions:-

1) You are seeing a list of boards in the boards list?
2) You can click "File>New Arduino Project", enter a name such as "MyTest" and a new Arduino sketch opens in Visual Studio?
3) You can click into the loop() code of MyTest.ino and press CTRL+J to see a list of Arduino methods and properties. In the list should be "Serial"
4) On the Project menu you can see "Add Arduino Library" with "User" and "Core" sub menus below?
5) You can close Visual Studio, open task manager and confirm that no instances of devenv.exe are running if they are then terminate them
6) You can re-open Visual Studio and try to compile/upload. Do things still look the same?

If you can asnwere these questions please then I will have some more questions for you.

Thanks
  
Back to top
IP Logged
 
EricL
Junior Member
**
Offline


Posts: 11
Location: Atlanta, GA
Joined: Oct 1st, 2012
Re: Cannot Upload to
Reply #9 - Oct 2nd, 2012 at 1:57pm
Print Post  
1) Yes
2) Yes
3) Yes
4) I can see Core and User. User is greyed out
5) Closed VS and there were no instances of devenv.exe
6) Everything still looks the same - no joy
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot Upload to
Reply #10 - Oct 2nd, 2012 at 2:43pm
Print Post  
1) Can you re-open the test project and add the eeprom library by clicking "Project>Add arduino library>core>eeprom". Does this add #include <eeprom.h> to the top of MyTest.pde?

2) When you switch board between Uno and mega 2560. Pressing CTRL+J in the Uno code should show just one "Serial" option. CTRL+J with mega 2560 selected should show "Serial", "Serial1", "Serial2" etc. Do you see this difference when switching between these two boards?

3) It as though visual studio is not calling vm for events such as "Build" and "Start". We haven't had anyone else report this so I wonder if another addin or extension is overriding the C++ build and preventing vm from having the opportunity to override things. Do you have other plugins installed? Please check "Tools>Extension Manager" and "Tools>Addin Manager". What do you see in these two lists?

Thanks
  
Back to top
IP Logged
 
EricL
Junior Member
**
Offline


Posts: 11
Location: Atlanta, GA
Joined: Oct 1st, 2012
Re: Cannot Upload to
Reply #11 - Oct 2nd, 2012 at 6:26pm
Print Post  
1) It adds <eeprom> to the top of MyTest.ino
2) Yes
3) There are no extensions. The only addin is "Visual Micro Arduino"
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot Upload to
Reply #12 - Oct 2nd, 2012 at 6:41pm
Print Post  
Okay well thanks for answering all of my questions so clearly. So the plugin is installed correctly but Visual Studio isn't allowing it to handle the build or compile process. You have a full user interface with intellisense working correctly between different boards. This indicates that Visual Studio is sending some events to the plugin correctly.

This seems specific to your install of Visual Studio and is certainly the most strange problem we have ever encountered so I can only suggest these ways forward:-

1) Run a VS repair using the Visual Studio Installer
2) If the repair doesn't fix things then I will tell you how to create a simple addin project for Visual Studio in which we can add nothing other than the events to handle compile. This will allow us to prove the basic addin/plugin functionality is working in your VS system.
3) If we prove 2) to be OK, then I will make a version of the plugin with additional trace and error messages to show where the problem is.

I am sorry this process has been painful for you. What is surprising is that the plugin system is very simple so this is the last place I would expect to have problems.

One last question: Have you installed any additional arduino libraries since installing the arduino ide? I ask the question even although vm has been proven to work with tons of different arduino libs, but I have to ask because it is such a weird problem
  
Back to top
IP Logged
 
EricL
Junior Member
**
Offline


Posts: 11
Location: Atlanta, GA
Joined: Oct 1st, 2012
Re: Cannot Upload to
Reply #13 - Oct 2nd, 2012 at 6:49pm
Print Post  
The only additional library installed is Linksprite. 

I will run repair on VS now.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot Upload to
Reply #14 - Oct 2nd, 2012 at 7:06pm
Print Post  
Maybe it is an idea to see what happens if you temporarily remove the library, re-start vs and try to small test  sketch again? 

Where can I download it from?
« Last Edit: Oct 2nd, 2012 at 7:06pm by Tim@Visual Micro »  
Back to top
IP Logged
 
EricL
Junior Member
**
Offline


Posts: 11
Location: Atlanta, GA
Joined: Oct 1st, 2012
Re: Cannot Upload to
Reply #15 - Oct 2nd, 2012 at 9:37pm
Print Post  
1) Completed repair of VS2010 - did not help
2) Uninstalled, rebooted, reinstalled VM, following the instructions in the VM website - did not help
3) Removed Linksprite Library - did not help
4) Here is the linksprite library if you want to try it on your end: https://github.com/linksprite/ZG2100BasedWiFiShield
  
Back to top
 
IP Logged
 
EricL
Junior Member
**
Offline


Posts: 11
Location: Atlanta, GA
Joined: Oct 1st, 2012
Re: Cannot Upload to
Reply #16 - Oct 3rd, 2012 at 11:38am
Print Post  
Is there anyway I can do a fresh installation? After an uninstall of VM, VS2010 is still aware of Arduino. Tells me the registry is not being cleaned. Your thoughts?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot Upload to
Reply #17 - Oct 3rd, 2012 at 9:58pm
Print Post  
By the way did you uninstall using control panel>visual micro for arduino>uninstall?
  
Back to top
IP Logged
 
EricL
Junior Member
**
Offline


Posts: 11
Location: Atlanta, GA
Joined: Oct 1st, 2012
Re: Cannot Upload to
Reply #18 - Oct 4th, 2012 at 2:02pm
Print Post  
Yes, that is the way I did the uninstall...

UPDATE: I grabbed a brand new machine and did the install of VS2010, Arduino, VM add-in, and VM debugger.

Then played around with Blink: recompile, upload, debug, etc..I did see the error where it says it cant find the .exe. I click OK and everything continued to work and I have never seen the error again.

I installed the Linksprite Library and have compiled and run the demos. So far all is well.

I would like to get it working on my original machine so I dont have to carry around 2 laptops.

I would be happy to try anything for you to help get it resolved.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot Upload to
Reply #19 - Oct 4th, 2012 at 2:30pm
Print Post  
I'll look at the installer, it preserves the install state in the install folder and uses it to uninstall. So that's another question of why it isn't working for you.

I also want to get this right for you! 

I never see the VC++ compiler messages, always Arduino, so interesting that you have seen this on two machines now.

One question, in all your tests have you been working with or without the (Micro Debug) = True?

I am hoping you have been working with it = False until you have a proven Arduino compile?

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint