Interrupt on GPIO23 not working
Posted: Wed Nov 20, 2024 5:25 pm
Hi,
I have set up an interrupt on GPIO23 on an ESP32-WROOM-32E but it does not get triggered.
I have changed to GPIO19 with exactly the same code and it works so I know my code is ok.
I have attached a scope to GPIO23 and I see the IO being toggled by the device that generates the interrupt so that´s ok as well.
So I have no idea.. it seems it is not a hardware or software problem so any ideas? Is there a problem with this GPIO?
I´m using the latest version of the ESP32 code for Arduino.
GPIO23 is pin 37 on the ESP32.
I have set up an interrupt on GPIO23 on an ESP32-WROOM-32E but it does not get triggered.
I have changed to GPIO19 with exactly the same code and it works so I know my code is ok.
I have attached a scope to GPIO23 and I see the IO being toggled by the device that generates the interrupt so that´s ok as well.
So I have no idea.. it seems it is not a hardware or software problem so any ideas? Is there a problem with this GPIO?
I´m using the latest version of the ESP32 code for Arduino.
GPIO23 is pin 37 on the ESP32.
Code: Select all
void IRAM_ATTR gyroValid() {
Serial.print("GyroInt");
if(!gyroData)
gyroData = true;
}
#define INT_GYRO 23
pinMode(INT_GYRO, INPUT_PULLUP);
attachInterrupt(INT_GYRO, gyroValid, FALLING); //Configures interrupt