VS Arduino
Visual Micro >> Installation & Troubleshooting >> ICACHE_RAM_ATTR compilation fails
https://www.visualmicro.com/forums/YaBB.pl?num=1602394748

Message started by Q47 on Oct 11th, 2020 at 5:39am

Title: ICACHE_RAM_ATTR compilation fails
Post by Q47 on Oct 11th, 2020 at 5:39am
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++):

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.

https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=log_012.txt ( 7 KB | 5 Downloads )

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.