Skip to content

Add more robust recovery #84

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MatthewKuKanich
Copy link

I was running into issues where the driver would be stopped (due to accumulation of TX errors) and the watchdog wouldn't recover the driver.

To fix this I added a more robust recovery process where it uninstalls and reinstalls the driver. This is optional and can be enabled with CAN0.setForceRecovery(true, 1000);

I had to tweak the watchdog function a little and also temporarily increase the stack size of the recovery task to be safe. I also added a function that prints the current state of the bus as well as error counts.

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