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
ISR - Interrupt Service Routines problem (Read 6628 times)
Fernando Inacio
Newbies
*
Offline



Posts: 2
Portugal
ISR - Interrupt Service Routines problem
Jan 19th, 2013 at 12:30pm
 
When writing a ISR function an error is presented showing "Error: Expected a declaration".
Example:
ISR(PCINT0_vect)
{ <- a red mark pointing to error
}
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10463
United Kingdom
Re: ISR - Interrupt Service Routines problem
Reply #1 - Jan 19th, 2013 at 1:55pm
 
Vs intellisense is MS C++, so it isn't 100% perfect.

If you find any std. defs that VM can add in the background to help VS then please let me know and I can add them to the next release.

Obviously they must be generic, not specific to any single sketch.
Back to top
 
WWW  
IP Logged
 
Fernando Inacio
Newbies
*
Offline



Posts: 2
Portugal
Re: ISR - Interrupt Service Routines problem
Reply #2 - Jan 20th, 2013 at 8:27am
 
This is happening to all sketch/programs using ISR.
Same sketch/program is running perfectly using Arduino application.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10463
United Kingdom
Re: ISR - Interrupt Service Routines problem
Reply #3 - Jan 20th, 2013 at 12:13pm
 
Hello,

You reported this error when writing a sketch which would be an intellisense error.

The compiler and intellisense systems in vs are two different things. So we might have minor intellisense errors but the sketch should always compile and upload correctly??

After you saying that you also have a compile error? The compile should be working same as arduino? If not then I will fix.
Back to top
« Last Edit: Jan 20th, 2013 at 1:52pm by Visual Micro »  
WWW  
IP Logged
 
Harrzack
Member
***
Offline



Posts: 130
Lindenwold, NJ USA
Re: ISR - Interrupt Service Routines problem
Reply #4 - Nov 22nd, 2013 at 12:36pm
 
Would like to add a 'me-too' to this situation. I'm having the exact symptoms.  It seems the the compiler is not liking the ISR(){}  syntax.  Visual Studio will also go 'not responding' VERY quickly with this error.

=Alan R.
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10463
United Kingdom
Re: ISR - Interrupt Service Routines problem
Reply #5 - Nov 23rd, 2013 at 3:44pm
 
Hi,

My understanding is that the compilation and upload is fine? It is just the VS intellisense report that is wrong.

Can you please confirm this to be the case.

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