-
Notifications
You must be signed in to change notification settings - Fork 48
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
Draft: Initial FDCAN support #30
Conversation
590da9a
to
766b49a
Compare
I've written a tool to print the pin mappings for user-specified peripherals, as I did not find anything similar before. This tool results in the following output for CAN:
If this is helpful to you, see https://github.com/mgottschlag/stm32-pin-tools. Is CAN limited to these specific pin pairs, or is it possible to mix any RX and TX pin, just like with other peripherals? |
Oh, that is helpful indeed, thanks!
Good point, I need to implement it more generally, though my first focus is to get this actually working ;-). |
ee8f295
to
5267f64
Compare
FDCAN is working now; and I've reorganised things a bit. Since the PR is rather big, some comments would be welcome. I do think that some things can be simplified somewhat, but overall I think it is a good starting point. |
5267f64
to
1a5b2f3
Compare
1a5b2f3
to
c6a67f1
Compare
I copied this FDCAN support to use on the STM32H7, and with a few minor tweaks I was able to get the basic echo example working on a STM32H735. PR here. As a courtesy I also made an issue on this repo #34 with some items I noticed whilst reading the code. My preference would be to move this FDCAN support into a common crate at stm32-rs/fdcan so that bugfixes and developments can be used by all devices. If no one has any objections, I will create a skeleton project there with the intention of copying this FDCAN support over. Collaboration would be very welcome! |
Initial support for CAN and FDCAN.
The CAN and FDCAN are two modules, and I'm still unsure how to do this. Part of it is taken from BxCAN, and the idea is that with a bit of effort FDCAN could be a separate crate as well, but with how the Message RAM works this seems to be more difficult than with BxCAN.