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
Identifier "__asm__" is undefined ??? (Read 56 times)
Harrzack
Member
***
Offline



Posts: 130
Lindenwold, NJ USA
Identifier "__asm__" is undefined ???
Sep 5th, 2019 at 7:01pm
 
This is in Visual Studio 2019, testing code for the Teensy4 board.  Most things are working quite well BUT - I've been experimenting with interrupts  and cli() is showing a red underscore and the above message.

It appears the the first of these macros shows the error, and the remaining interrupt handlers have no error - until i comment out cli() and then the error propagates down to 'noInterrupts() - and so on.

Arduino tool chain is 1.8.9  I just opened the sketch in the Arduino IDE - and there was no complaints on those functions....  So something in either VS2019 or Intellisense is confused.  Smiley  I guess I should ignore the warnings - but something COULD be amiss inthe VS2019 world.


Ideas?



Below is the test ISR which does get hit at a button press


Code (C++):
void ISR_Handler() {
	dummy = 1;
	cli();          <---- has error msg
	noInterrupts();
	//Serial.println("In ISR");
	flag = !flag;
	interrupts();
	sei();
	interrupts();
}



 

Back to top
« Last Edit: Sep 5th, 2019 at 7:02pm by Harrzack »  
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: Identifier "__asm__" is undefined ???
Reply #1 - Sep 5th, 2019 at 7:07pm
 
Please do not confuse intellisense with build errors. There is no comparison for the Arduino IDE with intellisense.

If you have any build or intellisense questions we can't help without the information request in the yellow box.

Intellisense is not perfect and is not connected to the compiler.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print