Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core 1 panic'ed (Interrupt wdt timeout on CPU1) on ESP32 #218

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jachik
Copy link

@jachik jachik commented Dec 17, 2024

Sometimes I got a core 1 panic (Interrupt wdt timeout on CPU1). The timeout occured in the expectPulse function. This was the case because the cpu stayed the most time (up to 1ms) in the while loop of this function when the sensor didn't deliver useable information. Because there is no timeout check in the critical section of the read-function, the expectPulse function was called 80 times, what lead under certain conditions to a wdt timeout - even with a default wdt timeout setting of 300ms.

I've just moved the timeout-check in the critical section and the problem disappeared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant