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) Compiler Error: Can't upload or debug (Read 7700 times)
SirMichael
Junior Member
**
Offline


Posts: 12
Joined: Apr 10th, 2014
Compiler Error: Can't upload or debug
Apr 14th, 2014 at 12:24pm
Print Post  
I've installed Visual Micro through the Amtel 6.2 along with Visual Studio.  I had Arduino 1.0.5 installed.

I have a project that I'm trying to debug (compiles and uploads with Arduino compiler OK), but I keep getting errors:


Compiling 'W0IH_Control_2' for 'Arduino Uno'
     Process: C:\Users\user\Documents\Arduino\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -w -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files\Arduino\hardware\arduino\cores\arduino" -I"C:\Program Files\Arduino\hardware\arduino\variants\standard" -I"C:\Program Files\Arduino\libraries\Wire" -I"C:\Users\user\Documents\Arduino\libraries\Adafruit_RGBLCDShield" -I"C:\Program Files\Arduino\libraries\EEPROM" -I"C:\Program Files\Arduino\libraries" -I"C:\Program Files\Arduino\hardware\arduino\libraries" -I"C:\Program Files\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"C:\Users\user\Documents\Arduino\libraries" -o ol_2.cpp.o"  ol_2.cpp"  -DVISUALMICRO_COMPILER_VER=1
   (LOTS of the lines above, then...)
Error compiling

Following what I could find for help (searches) I uninstalled and re-installed the packages but come up with the same thing.

I have the correct Com port.
I have the Tools/Options/Visual Micros setting correct for the C:\Program Files... executable and the Sketchbook location setup.  

I tried to copy my code and create a new project and paste my code into it, but still won't work.

One thing I see is that the "Active Solution Platform" is set to "AVR".  Is this correct?  There are
no other options!

Suggestions?

Mike
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler Error: Can't upload or debug
Reply #1 - Apr 14th, 2014 at 12:28pm
Print Post  
Hi,

Thanks for the info. 

Please also switch on tools>options>visual micro>compiler>show build properties.

Then click "Build>Clean Solution" and then compile. Please email the output to info [at] visualmicro.com

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler Error: Can't upload or debug
Reply #2 - Apr 14th, 2014 at 12:56pm
Print Post  
Thanks for the files. It looks like you are on an older version of Visual Micro. 

Would you please upgrade to the latest release of Visual Micro then run the test again.

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


Posts: 12
Joined: Apr 10th, 2014
Re: Compiler Error: Can't upload or debug
Reply #3 - Apr 14th, 2014 at 5:54pm
Print Post  
I am a bit confused, I had downloaded the latest version last week, but per your instructions, I downloaded it again off the Visual Micro site and did a "Repair" type install. 

I then started Amtel Studio 6.1 and it warns me of updates, one being Amtel Kits 1.6.230.  
   The Update routine starts on the Amtel Studio and I downloaded the "Arduino Ide for Amtel Studio 6.1 and 6.2" (Amtel.msi??) and got that installed, along with the "Amtel Kits" update.

Anyway, the short of it is, I still get the same errors with my project.

How do I tell what version of Visual Micro I'm running?
   Can't find it in the "Help/About".

Mike

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler Error: Can't upload or debug
Reply #4 - Apr 14th, 2014 at 6:01pm
Print Post  
Hi,

I think the installer failed to update some files. Please run it and click Remove then run again and click Install.

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler Error: Can't upload or debug
Reply #5 - Apr 14th, 2014 at 6:05pm
Print Post  
Sorry forgot to answer about version. It only shows version of main dll. Just to be sure let's have a clean install please remove/install. Repair is sometimes dodgy I wrote to Bill Gates but he didn't reply  Smiley

Tools>Options>Visual Micro>Version>Version
  
Back to top
IP Logged
 
SirMichael
Junior Member
**
Offline


Posts: 12
Joined: Apr 10th, 2014
Re: Compiler Error: Can't upload or debug
Reply #6 - Apr 14th, 2014 at 10:21pm
Print Post  
As you'll notice from my first posting, I've already uninstalled and re-installed it once.
  One thing that I noticed when I did that, it didn't delete all of the settings.
    Things like the Tools/Options/Visual Micros setting correct for the C:\Program Files... executable and the Sketchbook location setup were filled in.  I suspect some of the settings for the other installs.

How do I uninstall it all and delete all the settings? 
   There was no option given for that when I uninstalled it all before?
     Is there a directory in the Registry to delete the settings for
      Microsoft Visual Studio 2010?
        Amtel 6.1?
          Visual Micro?

Mike
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler Error: Can't upload or debug
Reply #7 - Apr 14th, 2014 at 10:56pm
Print Post  
Oh really sorry I didn't realize that the output you sent me was a series of exceptions.

The problem is that the path Visual Micro is using to find the compiler is C:\Users\user\Documents\Arduino when it should be C:\Program Files\Arduino

It's been a busy week should have spotted that earlier, sorry.

You are right it sounds like we have an incorrect or obsolete setting. It's probably the winavr path in tools>options>visual micro but closing the ide and deleting (if you know how) "HK_CURRENTUSER\Software\Visual Micro" reg key should allow a clean re-start and be re-prompted for ide location again

Thanks
« Last Edit: Apr 14th, 2014 at 11:21pm by Tim@Visual Micro »  
Back to top
IP Logged
 
SirMichael
Junior Member
**
Offline


Posts: 12
Joined: Apr 10th, 2014
Re: Compiler Error: Can't upload or debug
Reply #8 - Apr 15th, 2014 at 3:25am
Print Post  
Tim,

That did it!  Thanks.

I could have sworn that I had the paths set correctly, but apparently not. 
  As you suggested, I deleted the registry key (I did back it up first!) and then restarting the Amtel Studio prompted me for the paths and loading my file will compile and upload!

Many Thanks.

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