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 [3]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Intellisense issues with Arduino DUE and VS2013 (Read 32975 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense issues with Arduino DUE and VS2013
Reply #40 - Jun 4th, 2016 at 7:08pm
Print Post  
I found that if you add this following #define then you don't need to redefine all the methods such as isdigit(x)

Code
Select All
#define _HAVE_STDC 



It's in the next release along with the sam3x #include. So hopefully you can remove your .h intellisense file after the next update. 

If you find yourself putting other things in the .h then please let me know so that the system works as much as possible with standard config.

Thanks a lot.
  
Back to top
IP Logged
 
ghlawrence2000
Junior Member
**
Offline


Posts: 35
Joined: Jun 2nd, 2016
Re: Intellisense issues with Arduino DUE and VS2013
Reply #41 - Jun 4th, 2016 at 7:46pm
Print Post  
Hi Tim,

my a.h is now :-

#include "sam3xa.h"
#define __arm__
#define _HAVE_STDC

Lots of red blobs again, have I put it in the wrong place?

Regards,

Graham
  
Back to top
 
IP Logged
 
ghlawrence2000
Junior Member
**
Offline


Posts: 35
Joined: Jun 2nd, 2016
Re: Intellisense issues with Arduino DUE and VS2013
Reply #42 - Jun 4th, 2016 at 7:50pm
Print Post  
Suddenly can't edit messages...

My previous a.h was :-

#include "sam3xa.h"
#define __arm__
//#define _HAVE_STDC

int isdigit(char __c) {}
int strlen(char[]) {}
int strcpy(char[], char[]) {}
void sprintf(char[], char[], int) {}
void sprintf(char[], char[], char[], char[]) {}
void sprintf(char[], const char[], char[]) {}
char* strtok(char*, char*) {}
int atoi(char*) {}
int strncmp(char*, char*, int) {}
void sscanf(char*, const char[], char[], uint32_t*) {}
int strcmp(char*, char*) {}
void sprintf(char[], const char[], uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t) {}


No red blobs  Wink

Regards,

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense issues with Arduino DUE and VS2013
Reply #43 - Jun 4th, 2016 at 7:51pm
Print Post  
No that's interesting. 

In the next release the sam3x is included before the arduino.h which you can't do. When I move the sam3x to after the arduino.h I get 500 errors, above the arduino.h I get 5 errors mainly in the usb core.

So lets please see how the next release works should be alter today or tomorrow.

ps: the forum is playing up
« Last Edit: Jun 4th, 2016 at 7:53pm by Tim@Visual Micro »  
Back to top
IP Logged
 
ghlawrence2000
Junior Member
**
Offline


Posts: 35
Joined: Jun 2nd, 2016
Re: Intellisense issues with Arduino DUE and VS2013
Reply #44 - Jun 4th, 2016 at 7:54pm
Print Post  
You should get a beer and have the night off, it is the weekend! Wink Tongue

Thanks for everything!

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense issues with Arduino DUE and VS2013
Reply #45 - Jun 4th, 2016 at 7:55pm
Print Post  
Thanks but I only do this at the weekend. It's been a busy few months because Arduino changed everything Smiley
  
Back to top
IP Logged
 
ghlawrence2000
Junior Member
**
Offline


Posts: 35
Joined: Jun 2nd, 2016
Re: Intellisense issues with Arduino DUE and VS2013
Reply #46 - Jun 4th, 2016 at 7:58pm
Print Post  
Well, muchas gracias from Nottinghamshire!!

Grin

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense issues with Arduino DUE and VS2013
Reply #47 - Jun 6th, 2016 at 8:29pm
Print Post  
The new release is up. Interested to know if better or worse.

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


Posts: 35
Joined: Jun 2nd, 2016
Re: Intellisense issues with Arduino DUE and VS2013
Reply #48 - Jun 6th, 2016 at 8:40pm
Print Post  
Tim,

I downloaded and installed the update moments after it was released. I am not sure I am the best person to be commenting. I don't understand enough about VM to be saying if it made things better since I am not sure what I can or cannot remove from my a.h

I tried to remove the #define __arm__ it made things worse, I tried to remove the #include 'sam3xa.h' it made things worse, #define _HAVE_STDC, doesn't appear to make any difference, so I refrained from commenting.

But thank you for all your hard work!! It is very much appreciated.

Regards,

Graham

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense issues with Arduino DUE and VS2013
Reply #49 - Jun 6th, 2016 at 8:47pm
Print Post  
Ok

Do you get more or less errros if you remove your intellisense .h?

How many errors show in the Errors List window when the selector on the window is set to "Entire Solution"?

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


Posts: 35
Joined: Jun 2nd, 2016
Re: Intellisense issues with Arduino DUE and VS2013
Reply #50 - Jun 6th, 2016 at 9:05pm
Print Post  
When I don't define __arm__ I get not defined erros because I have #if defined(__arm___) macros, but most people probably would not.

I still have to specify exactly my syntax for intellisense. I don't see any change to be honest, which is why I didn't say anything within an hour of release.

I am sorry Sad. I wish I could report better news!

Thanks,

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense issues with Arduino DUE and VS2013
Reply #51 - Jun 6th, 2016 at 9:14pm
Print Post  
__arm__ should already be declared for you so we have some confusion somewhere

Can you please post or email the project_name.vsarduino.h from the _vm folder below the sketch.

Also try switching to a different board in the list such as Uno then back to Due again.

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


Posts: 35
Joined: Jun 2nd, 2016
Re: Intellisense issues with Arduino DUE and VS2013
Reply #52 - Jun 6th, 2016 at 9:27pm
Print Post  
HA!!!

That did it...........

I now have no intellisense define, and no errors!!  Cheesy

You star!!!

I think that deserves a beer and an early night Wink Tongue

Tim, my heartfelt thanks!!

Regards,

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense issues with Arduino DUE and VS2013
Reply #53 - Jun 6th, 2016 at 9:30pm
Print Post  
Great, when you save the project, add methods to .ino files, add libs etc. that also refreshes the intellisense. Switching board was just a way to force it. I think after a build or a few edits it would have sorted itself out.

Thanks for the testing. I'll take you up on the beer sometime Smiley
  
Back to top
IP Logged
 
ghlawrence2000
Junior Member
**
Offline


Posts: 35
Joined: Jun 2nd, 2016
Re: Intellisense issues with Arduino DUE and VS2013
Reply #54 - Jun 6th, 2016 at 9:35pm
Print Post  
Now let me go looking for ways to break it  Roll Eyes  Grin

No, seriously, thank you so much for everything!!! It is VERY MUCH appreciated!!

Best regards,

Graham
  
Back to top
 
IP Logged
 
ghlawrence2000
Junior Member
**
Offline


Posts: 35
Joined: Jun 2nd, 2016
Re: Intellisense issues with Arduino DUE and VS2013
Reply #55 - Jun 6th, 2016 at 9:40pm
Print Post  
Will become a PRO licence owner when the trial expires...

I can't thank you more than that..

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense issues with Arduino DUE and VS2013
Reply #56 - Jun 6th, 2016 at 9:42pm
Print Post  
Thanks but helping to get the intellisense right was more than enough. 

There are a lot of different platforms so always useful to have someone who provides clear and timely info.
  
Back to top
IP Logged
 
ghlawrence2000
Junior Member
**
Offline


Posts: 35
Joined: Jun 2nd, 2016
Re: Intellisense issues with Arduino DUE and VS2013
Reply #57 - Jun 6th, 2016 at 9:48pm
Print Post  
Well a bit of mutual loving then.... awwww  Grin

You have an awesome product. I for one appreciate it!

Any further help I may be, let me know, but I don't appeciate Arduino.org Tongue

Regards,

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense issues with Arduino DUE and VS2013
Reply #58 - Jun 6th, 2016 at 9:56pm
Print Post  
Quote:
but I don't appreciate Arduino.org


I had a lot of support issues with users of the 1.7.x arduino.org software thinking it;s newer than Arduino.cc 1.6.x. It is actually Arduino.cc 1.5.x with a 1.7.x label. 

So it was very confusing until I added it to the apps list in Visual Micro. Good that it comes with the sam core. So I am in two minds about it.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 
Send TopicPrint