-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
Area: Peripherals APIRelates to peripheral's APIs.Relates to peripheral's APIs.Status: SolvedThe issue has been resolved and requires no further action.The issue has been resolved and requires no further action.Type: Bug 🐛All bugsAll bugs
Milestone
Description
Board
ESP32-WROOM-32E (4MB Flash)
Device Description
Nothing
Hardware Configuration
Using On both WROOM Tester and on PCB
Version
v2.0.4
IDE Name
Arduino IDE 1.8.19
Operating System
Windows 10
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
921600
Description
I was using ESP32 Arduino v1.0.6 to program ESP32-WROOM-32E (4MB Flash) and had no issue whatsoever. Since I upgraded to ESP32 Arduino v2.0.4 I noticed lags in hardware response. Tracking down I reached some strange difference between two versions. touchAttachInterrupt that took less than 1ms in v1.0.6 now takes 26ms!
Sketch
long beginDur = 0;
void IRAM_ATTR gotTouch() {}
void setup() {
Serial.begin(115200);
}
void loop() {
beginDur = millis();
touchAttachInterrupt(4, gotTouch, 30);
Serial.println("dur: " + String(millis() - beginDur));
}
Debug Message
Serial output while using ESP32 Arduino v1.0.6:
dur: 0
dur: 0
dur: 0
dur: 0
Serial output while using ESP32 Arduino v2.0.4:
dur: 26
dur: 26
dur: 26
dur: 26
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Area: Peripherals APIRelates to peripheral's APIs.Relates to peripheral's APIs.Status: SolvedThe issue has been resolved and requires no further action.The issue has been resolved and requires no further action.Type: Bug 🐛All bugsAll bugs
Type
Projects
Status
Done