IDE ICACHE_RAM_ATTR throws up an error

The following compiles but interrupts are not actioned

volatile bool mpuInterrupt = false; // indicates whether MPU interrupt pin has gone high
void dmpDataReady() {
mpuInterrupt = true;
}

void ICACHE_RAM_ATTR dmpDataReady();

The ICACHE_RAM_ATTR is highlighted with a double underline and gives this message
Argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a commaclang(attribute_section_invalid_for_target)

Note same code runs perfectly on 1.8.1.1. Board is an ESP32 DevKit V4

Any suggestions

My mistake the code does run despite the error message. But I would like to know why and how to correct it.

Hi @sjgc. Thanks for your report.

Which version of the Arduino IDE are you using? I was not able to reproduce the issue with 2.0.0-rc3

Is that the board you have selected from the board menu in the Arduino IDE? I did not find a board of that name in the ESP32 platform.