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
Normal Topic Intellisense problems in VS2015; PINB, LOW, digitalRead... not recognized (Read 3636 times)
ulrik
Newbies
*
Offline


Posts: 2
Joined: Dec 22nd, 2015
Intellisense problems in VS2015; PINB, LOW, digitalRead... not recognized
Dec 22nd, 2015 at 9:47am
Print Post  
I have some problems regarding the Intellisense in VS2015. The following functions and symbols are not recognized:
ISR,cli,sei,TIMSK0,PINB,...
digitalRead,pinMode,byte,HIGH,LOW,...

I do get a number of related errors during compile:
cannot open source file "WProgram.h"
identifier "digitalRead" is undefined
identifier "HIGH" is undefined
...

However, upload and code is working fine on the board.

I can solve most of the missing symbols by including 
#include "Arduino.h"
#include "avr/iom328p.h"

where the last line is problematic:
Attempt to include more than one <avr\ioXXX.h> file.

I am using the following:
Microsoft Visual Studio Community 2015 Version 14.0.24720.00 Update 1
Visual Micro 1512.20.2
Arduino 1.6.7
Arduino Uno R3

I have tried to:
1) reinstall the plugin
2) restart software and computer
3) switch to other board and back again
4) toggle the "Always Re-Add Header" intellisense option

Thank you in advance.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12136
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense problems in VS2015; PINB, LOW, digitalRead... not recognized
Reply #1 - Dec 23rd, 2015 at 2:46pm
Print Post  
Hi,

There has just been an update in "tools>extensions and updates" which might fix the issue.

Please try the new release.

There was a change to help with some new functionality related to using the Microsoft Gdb debugger on 32 bit boards. I think that affected things.

Sorry for the confusion.

Look forward to hearing

Thanks
  
Back to top
IP Logged
 
ulrik
Newbies
*
Offline


Posts: 2
Joined: Dec 22nd, 2015
Re: Intellisense problems in VS2015; PINB, LOW, digitalRead... not recognized
Reply #2 - Dec 23rd, 2015 at 10:51pm
Print Post  
I installed the update but it did not fix the issue right away for my project in progress. However, by creating a new empty project and copying all code from the old one, the issue was gone. Now everything is working like a charm!

Thank you very much!

Best,
Ulrik
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint