m5stack / M5EPD

M5Paper Arduino Library
MIT License
167 stars 53 forks source link

GT911 - Interrupt disabling causes target reset #54

Closed fb87 closed 1 year ago

fb87 commented 1 year ago

I am checking M5EPD with sample code but target reset right after boot. It's seem to be issue with the Interrupt disabling in GT911 ISR. According to the note from esp32 which states ESP32xx runs FreeRTOS... disabling interrupts can lead to issues, such as Watchdog Timeout. Since when I was disable the interrupt disabling as bellow, the target didn't reset anymore, kindly check if we can do something better?

void ICACHE_RAM_ATTR ___GT911IRQ___()
{
    // noInterrupts();
    gt911_irq_trigger = 1;
    // interrupts();
}
Tinyu-Zhao commented 1 year ago

Currently in communication with ESP32 about this issue, until then no better solution has been found, please be patient, thanks.