Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
APM 2.5+ on ArduRover 2.41 (Read 8050 times)
Bernard Drew
Newbies
*
Offline



Posts: 4
APM 2.5+ on ArduRover 2.41
Jun 6th, 2013 at 7:51pm
 
Hope this is the right forum for my question.

I have successfully compiled the ArduRover 2.41 code using the Arduino 1.0.3 software.

After installing the Visual Micro plugin into Visual Studio Pro 2012.† I attempted to compile the ArduRover code.† The compile fails with 100 Intellisense errors.† Can anyone give me an idea on how to correct this?

Windows 7 Dell computer
Visual Studio Professional 2012
Arduino 1.0.3
APM 2.5+
ArduRover 2.41

Thanks in advance,
Bernard
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10550
United Kingdom
Re: APM 2.5+ on ArduRover 2.41
Reply #1 - Jun 6th, 2013 at 8:03pm
 
Hello Bernard,

The compiler and the intellisense are two entriely different systems.

The intellisense window will always show some errors because we use the C++ engine of Visual Studio. However we are constantly working to improve it.

I suggest you close the intellisense report window, hopefully most of the code does not show red underlines and you have intellisense when you type? If so then intellisense is working well enough (for now).

As for the compiler, please press F5 or build and post the error you get

Thanks
Back to top
« Last Edit: Jun 6th, 2013 at 8:05pm by Visual Micro »  

WWW  
IP Logged
 
Bernard Drew
Newbies
*
Offline



Posts: 4
Re: APM 2.5+ on ArduRover 2.41
Reply #2 - Jun 6th, 2013 at 8:40pm
 
Thanks for the fast response.

Can I compile without being plugged into the APM?

Here are the non-Intellisense errors.

Error      101      avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer            

These are the results after F5.

Thanks,
Bernard
Back to top
 
 
IP Logged
 
Bernard Drew
Newbies
*
Offline



Posts: 4
Re: APM 2.5+ on ArduRover 2.41
Reply #3 - Jun 6th, 2013 at 8:43pm
 
Here are resutls after hitting F6 in VS.

Compiling 'APMrover2' for 'Arduino Mega 2560 HAL (Apm 2)'
Binary sketch size: 161900 bytes (63% of a 258048 byte maximum) (29.96 secs)

Also I did not receive any non-Intellisense errors.  Does this mean success?

Bernard
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10550
United Kingdom
Re: APM 2.5+ on ArduRover 2.41
Reply #4 - Jun 6th, 2013 at 9:35pm
 
Quote:
Compiling 'APMrover2' for 'Arduino Mega 2560 HAL (Apm 2)'
Binary sketch size: 161900 bytes (63% of a 258048 byte maximum) (29.96 secs)


Yes that is a successful compile

Quote:
Error† †† †101† †† †avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer† †† †† †† †


No you will not be able to press F5 and upload without a board connected.

You also need to untick "Tools>Upload using programmer" otherwise when you do connect a board the upload will still fail. A lot of people tick this option thinking it is correct but it means that you have a special piece of hardware called a programmer. The standard upload will use USB and is not called a programmer.

I know it is confusing, it is Arduino speak not Visual Micro speak† Cheesy
Back to top
« Last Edit: Jun 6th, 2013 at 9:35pm by Visual Micro »  

WWW  
IP Logged
 
Bernard Drew
Newbies
*
Offline



Posts: 4
Re: APM 2.5+ on ArduRover 2.41
Reply #5 - Jun 6th, 2013 at 10:11pm
 
Thanks for your help.  Will try uploading tomorrow.

Bernard
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print