-
Notifications
You must be signed in to change notification settings - Fork 204
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
Backport STM32H7 FDCAN #185
Open
JacobCrabill
wants to merge
7
commits into
PX4:px4_firmware_nuttx-10.1.0+
Choose a base branch
from
volansi:px4-10.1.0+-backport-fdcan
base: px4_firmware_nuttx-10.1.0+
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Backport STM32H7 FDCAN #185
JacobCrabill
wants to merge
7
commits into
PX4:px4_firmware_nuttx-10.1.0+
from
volansi:px4-10.1.0+-backport-fdcan
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adds an FDCAN driver for STM32H7 MCUs using the SocketCAN interface
Note that pinmap.h, irq.h, fdcan.h still need to be updated with proper register definitions for the FDCAN3 peripheral present in STM32H7[2|3][3|5] MCUs
1 task
JacobCrabill
force-pushed
the
px4-10.1.0+-backport-fdcan
branch
from
May 24, 2022 21:29
69372b7
to
2d209e6
Compare
@JacobCrabill thanks for this! I assume I can use this backport to talk to a CAN (not CAN-FD) device on an STM32H7, right? And do you happen to have any example around where this is used, or how it would be used? |
This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Backport of apache/nuttx#6057
Adds SocketCAN driver for STM32H7 MCUs.
Impact
Enables SocketCAN usage on all STM32H7 boards which have a CAN interface available (needed for UAVCANv1 / Cyphal within PX4).
Testing
So far, only a version based on top of NuttX 10.3.0[+] has been tested on hardware - I plan to repeat my basic integration tests using this branch soon.
(These tests will involve building PX4 for several H7 boards and testing UAVCANv1 / Cyphal support with both CAN2.0B and CAN-FD frames).
Future TODOs