Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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](https://private-user-images.githubusercontent.com/10556538/326634782-fa7366ce-37c8-4e8d-95a2-df02d33ae462.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwOTkyMzcsIm5iZiI6MTcyMTA5ODkzNywicGF0aCI6Ii8xMDU1NjUzOC8zMjY2MzQ3ODItZmE3MzY2Y2UtMzdjOC00ZThkLTk1YTItZGYwMmQzM2FlNDYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE2VDAzMDIxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJkMzc4N2NlODkzNmQ0ZGQ0MmRkNDBlYzAyODQ5NDk3M2RiZjc4MTA5OTVkMTMxMmU3MjU1NDhmNGYyNDAxNDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PlsfClrvA2dTszMS6bS8_De0RWShSw01yePhDmNsqqw)
But actually the blocks are smaller:
![image](https://private-user-images.githubusercontent.com/10556538/326635000-b87206f0-041c-48f9-a913-1d69ecc14738.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwOTkyMzcsIm5iZiI6MTcyMTA5ODkzNywicGF0aCI6Ii8xMDU1NjUzOC8zMjY2MzUwMDAtYjg3MjA2ZjAtMDQxYy00OGY5LWE5MTMtMWQ2OWVjYzE0NzM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE2VDAzMDIxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2MWU3OTFkZGUzYjE1M2Q4YmVjZGFjNTgzODExOGE0NjcwZmJmZTE2Nzk5OGVjOTE5ODczYmY2ZDFjNTBjYmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CiZLZqqkfUYOj-gdrcllRGWpzgSxXoTmBuV3aDdnFTg)