-
Notifications
You must be signed in to change notification settings - Fork 108
ESP32 CAN not working after update ArduinoESP32 to v3.1.1 and esp32_can to 0.3.0 #75
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
Comments
adding vTaskDelay(pdMS_TO_TICKS(100)); to task_CAN gets the loop to run again. esp32_can_builtin.cpp
|
Indeed, you are correct. I'm seeing the same thing. I have added a 100ms delay before the loop and it seems to work. It seems like not having a slight start up delay causes it to get ahead of itself somewhere. I did not add any delays to the actual loop itself. I'm still testing but I may upload this as a fix. |
Created a pull request on this: #78 The delay should be propably as low as possible. Maybe we just can reset the watchdog also manually here |
After update ArduinoESP32 to v3.1.1 and esp32_can to 0.3.0 board hangs on a ESP32.
the main loop hangs after:
xTaskCreate(ESP32CAN::task_CAN, canHandlerTaskName, 8192, this, 15, &task_CAN_handler);
it seems task_CAN keeps running.
Same code on a ESP32-C6 works without issues.
The text was updated successfully, but these errors were encountered: