Skip to content

Add more robust recovery#84

Open
MatthewKuKanich wants to merge 1 commit intocollin80:masterfrom
MatthewKuKanich:master
Open

Add more robust recovery#84
MatthewKuKanich wants to merge 1 commit intocollin80:masterfrom
MatthewKuKanich:master

Conversation

@MatthewKuKanich
Copy link
Copy Markdown

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