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


Posts: 2
Location: Portugal
Joined: Jan 13th, 2013
ISR - Interrupt Service Routines problem
Jan 19th, 2013 at 12:30pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ISR - Interrupt Service Routines problem
Reply #1 - Jan 19th, 2013 at 1:55pm
Print Post  
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
Location: Portugal
Joined: Jan 13th, 2013
Re: ISR - Interrupt Service Routines problem
Reply #2 - Jan 20th, 2013 at 8:27am
Print Post  
This is happening to all sketch/programs using ISR.
Same sketch/program is running perfectly using Arduino application.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ISR - Interrupt Service Routines problem
Reply #3 - Jan 20th, 2013 at 12:13pm
Print Post  
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.
« Last Edit: Jan 20th, 2013 at 1:52pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: ISR - Interrupt Service Routines problem
Reply #4 - Nov 22nd, 2013 at 12:36pm
Print Post  
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
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ISR - Interrupt Service Routines problem
Reply #5 - Nov 23rd, 2013 at 3:44pm
Print Post  
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 TopicPrint