-
Notifications
You must be signed in to change notification settings - Fork 35
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
CTBot ESP32 && Task watchdog #128
Comments
Hello bosoft-ESP, Regards, Stefano |
Thank you, Stefano, for your reply. Regards |
Hello. Regards |
Hello void setup(){ void loop() { void loop2(void *parameter){ But as I had been without watchdog for quite a few days using vTaskDelay, I have left vTaskDelay just in case and, in addition, implemented Copilot's solution. Regards |
Hi, I've been trying for a few months to get a 2 core esp32 to not run Task watchdog.
The code has 2 tasks:
task1 in loop core 1: reads 2 pins and handles a flash led with millis().
task2 in Task_2 core 0: only reads and sends Telegram messages. Read is checked every 40 seconds and send is usually every 15 to 20 hours.
The ESP32 is reset from time to time with this information:
After several tests, I think I found the solution: Add in the CTBotSecureConnection.cpp file a
vTaskDelay( pdMS_TO_TICKS( 7 ) )
only for ESP32. I only tried 7 and it worked. Other values might work better or worse.Regards
The text was updated successfully, but these errors were encountered: