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

Improvement: Update CANFD library with 2517 compat toggle #753

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

dalathegreat
Copy link
Owner

@dalathegreat dalathegreat commented Jan 5, 2025

What

This PR adds the suggested changes to the pierremolinaro/acan2517FD library as suggested in this PR

Why

There is a performance gain, disabling 2517FD compat mode, it no longer disables interrupts during SPI transactions which slightly increases performance and avoids delaying interrupts. There should be no downside to enabling this, since our Wiki suggests using the 2518FD chip instead.

How

Disabling the MCP2517 compatibility mode can be done in ACAN2517FD.h by uncommenting the #define DISABLEMCP2517FDCOMPAT line. By default we keep this disabled until someone has had time to test it properly on a heavy bus load CAN-FD setup.

Copy link
Collaborator

@mvgalen mvgalen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Will test it on my setup and report results.

@mvgalen mvgalen merged commit 33cbbd3 into main Jan 5, 2025
104 checks passed
@mvgalen mvgalen deleted the improvement/MCP2518FD-speedup branch January 5, 2025 20:59
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.

2 participants