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

Add support for g4 can2 and can3 #101

Merged
merged 3 commits into from
May 1, 2024

Conversation

pietgeursen
Copy link

@pietgeursen pietgeursen commented Apr 29, 2024

This PR adds CAN2 and CAN3 support for the G4 devices.

I have tested that FDCAN2 does actually send can frames. I haven't done more in-depth tests of FDCAN2 yet, or tested FDCAN3 but I feel like it's safe to assume that stuff will work.

The datasheet is a bit misleading. Table 3 would make you think the message ram is divided into 1K blocks.
image

But actually the blocks are smaller:
image

@David-OConnor
Copy link
Owner

Great stuff. Of note, I use G4 with CAN a lot, but I unfortunately, the transceiver is wired to CAN1 on all the boards, so can't help test.

@pietgeursen pietgeursen marked this pull request as ready for review April 30, 2024 01:36
@David-OConnor
Copy link
Owner

Is this now ready for review?

@pietgeursen
Copy link
Author

pietgeursen commented May 1, 2024 via email

@David-OConnor
Copy link
Owner

Great stuff; well-researched.

@David-OConnor David-OConnor merged commit b5cd4db into David-OConnor:main May 1, 2024
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.

None yet

2 participants