admin管理员组文章数量:1356914
I have troubles with a mysterious delay on ESP32s. It makes my project work incorrectly.
For example, to exclude another reason, I show it on empty project.
This is the code:
loop() {
Serial.print("moment1: ");
Serial.println(micros() - processTime);
processTime = micros();
Serial.print("moment2: ");
Serial.println(micros() - processTime);
processTime = micros();
Serial.print("last moment:");
Serial.println(micros() - processTime);
processTime = micros();
Serial.println();
}
In the output, I see anything like:
moment1: 42
moment2: 19
last moment: 10233
moment1: 43
moment2: 19
last moment: 21
moment1: 42
moment2: 10197
last moment: 20
Does anybody know where from this delay for > 10000 micro seconds comes from? And how to get rid of it?
This delay distorts the work of the project. And in this project wifi or BT are not used
I was trying to use
noInterrupts();
//code;
interrupts();
but esp going to reboot
本文标签: Mysterious delay on ESP32sStack Overflow
版权声明:本文标题:Mysterious delay on ESP32s - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743963284a2569423.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论