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 ICACHE_RAM_ATTR compilation fails (Read 600 times)
Q47
Newbies
*
Offline


Posts: 1
Joined: Sep 30th, 2020
ICACHE_RAM_ATTR compilation fails
Oct 11th, 2020 at 5:39am
Print Post  
Hello, the following code segment produces compilation errors within vMicro, while compiles and works in the Arduino IDE

Board: NodeMCU 1.0 (ESP-12E Module)

Here is minimum code that causes building to fail:

Code (C++)
Select All
void ICACHE_RAM_ATTR typicalISR() {
	;
}

void setup() {
	;
}

void loop() {
	;
}
 



If I remove the ICACHE_RAM_ATTR define the code compiles, however, it breaks functionality as it is required for interrupts.

This code compiles in the Arduino IDE, so I have a partial workaround.

I have attached the build log.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint