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) Editor shows error when board is Arduino Due programing port (Read 13382 times)
DueDevPj
Newbies
*
Offline


Posts: 7
Joined: Oct 21st, 2015
Editor shows error when board is Arduino Due programing port
Oct 21st, 2015 at 3:04pm
Print Post  
Visual studio 2015 community 2015, Win10, x64

Created a new Arduino project with "Due progrming port",
very basic, duetest.ino

void setup()
{
     double y = 90.0;
     double x = sin(y);
}

void loop()
{
}

It builds but editor shows y in red.

Including 
#include <math.h>
or variations "math.h", nothing fix it.
Adding "add new empty c++ and header" shows similar behavior in the c++ file.

Now add
#include <cstdint> in an ino file
and it's the void that editor shows in red,
with "Error variable EMIT is not a type name"

When board is Arduino Minipro, all of above is ok,
except the #include <cstdint> that behaves the same.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
DueDevPj
Newbies
*
Offline


Posts: 7
Joined: Oct 21st, 2015
Re: Editor shows error when board is Arduino Due programing port
Reply #1 - Oct 21st, 2015 at 3:06pm
Print Post  
zip files added, remove the .txt to unzip
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Editor shows error when board is Arduino Due programing port
Reply #2 - Oct 21st, 2015 at 3:40pm
Print Post  
Hi,

Are you using ide from arduino.org or arduino.cc?

Thanks
  
Back to top
WWW  
IP Logged
 
DueDevPj
Newbies
*
Offline


Posts: 7
Joined: Oct 21st, 2015
Re: Editor shows error when board is Arduino Due programing port
Reply #3 - Oct 21st, 2015 at 7:30pm
Print Post  
arduino.cc 1.6.5
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Editor shows error when board is Arduino Due programing port
Reply #4 - Oct 22nd, 2015 at 2:07am
Print Post  
I think this is because the project is set to be x64

Trying using "Build>Configuration manager" to set win32. You probably need to switch to the x86 option to see win32. 

Visual Micro currently expects win32 C++ projects.

Maybe win32 c++ isn't installed. If it is installed you will have a "File>New>Project>Win32" option. This is also what Visual Micro creates when you use Visual Micro to create projects (if its installed).

Some better documentation is needed in this area, the issue is new to Vs2015
« Last Edit: Oct 22nd, 2015 at 2:09am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
DueDevPj
Newbies
*
Offline


Posts: 7
Joined: Oct 21st, 2015
Re: Editor shows error when board is Arduino Due programing port
Reply #5 - Oct 22nd, 2015 at 2:21pm
Print Post  
win32 x68 is set  and win32 c++ looks there.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
DueDevPj
Newbies
*
Offline


Posts: 7
Joined: Oct 21st, 2015
Re: Editor shows error when board is Arduino Due programing port
Reply #6 - Oct 22nd, 2015 at 2:25pm
Print Post  
c++ win32 project.
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Editor shows error when board is Arduino Due programing port
Reply #7 - Oct 22nd, 2015 at 2:32pm
Print Post  
Thanks yes C++ looks good but I have reviewed your original image.

You do not need to #include arduino.h in arduino .ino code this is done automatically.

You should only #include files once. So do not include <math.h> and "math.h"

You must only include published arduino sources. I don't believe that arduino has a cstdint.h but correct me if I am wrong about that? It's possible some underlying Visual Studoio suggests are confusing you about what can be included.

Please also open the "Error List" so we can see what Visual Studio is saying is the error?

Please confirm if build works okay?

« Last Edit: Oct 22nd, 2015 at 2:33pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
DueDevPj
Newbies
*
Offline


Posts: 7
Joined: Oct 21st, 2015
Re: Editor shows error when board is Arduino Due programing port
Reply #8 - Nov 6th, 2015 at 5:13pm
Print Post  
Get Adafruit_GPS_Library,
open \Arduino\libraries\Adafruit_GPS_Library\examples\due_parsing\due_parsing.ino
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Editor shows error when board is Arduino Due programing port
Reply #9 - Nov 6th, 2015 at 5:27pm
Print Post  
Thanks for the post

Please confirm your visual micro version from tools>options>visual micro>version

There were some 32 bit fixes in the Visual Micro version released on 22nd Oct (http://www.visualmicro.com/page/Visual-Micro-Product-Version-History-Fixes-and-A...)

If you have a version below 1510.22 then please upgrade Visual Micro using "tools>extensions and updates"

Thanks
« Last Edit: Nov 6th, 2015 at 5:31pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
DueDevPj
Newbies
*
Offline


Posts: 7
Joined: Oct 21st, 2015
Re: Editor shows error when board is Arduino Due programing port
Reply #10 - Nov 6th, 2015 at 7:41pm
Print Post  
1.1511.03
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Editor shows error when board is Arduino Due programing port
Reply #11 - Nov 6th, 2015 at 7:51pm
Print Post  
Please zip and email your code so I can see all of it.

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Editor shows error when board is Arduino Due programing port
Reply #12 - Nov 6th, 2015 at 7:58pm
Print Post  
I just tried it with the release version and see a problem

I think there is a file missing I will rebuild over the next couple of days and make a new release

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